Answers for "async await js api"

20

async await

const data = async ()  => {
  const got = await fetch('https://jsonplaceholder.typicode.com/todos/1');
  
  console.log(await got.json())
}

data();
Posted by: Guest on July-24-2020
0

Async/Await

async function run () {
  const user = await getUser()
  const tweets = await getTweets(user)
  return [user, tweets]
}
Posted by: Guest on October-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language