javascript async function example with return value
Example 1: async await
async function showAvatar() {
// read
await setTimeout(resolve, 3000);
// read next 3s
}
showAvatar();
Example 2: async function someFunction()
async function someFunction() {
console.log("someFunction");
}
Console.log("Start");
someFunction();
console.log("End");