Answers for "how to explain js async/await"

0

async await

//used in node.js
const fetch = require('node-fetch');
async function Showuser() {
  const result = await fetch('https://jsonplaceholder.typicode.com/todos/1');
  const date = await result.json();
  console.log(date);
}

Showuser();
Posted by: Guest on August-28-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language