Answers for "async function get api"

1

async function get api

async function getPosts() {
  const response = await fetch('https://jsonplaceholder.typicode.com/posts?_limit=3&_page=1');
  const data = await response.json();
  return data
Posted by: Guest on September-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language