Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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();
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #async #await
ADD COMMENT
Topic
Name
6+8 =