js running async anonymous function code example
Example: async await anonymous function
let x = await (async function() {return "hello"})();
console.log(x);
// or
console.log(await (async() => 'hello')())
let x = await (async function() {return "hello"})();
console.log(x);
// or
console.log(await (async() => 'hello')())