Answers for "create an asynchroous function in js"

14

async awiat

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

Code answers related to "create an asynchroous function in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language