Answers for "async await anonymous function"

3

async await anonymous function

let x = await (async function() {return "hello"})();
console.log(x);
// or
console.log(await (async() => 'hello')())
Posted by: Guest on April-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language