Black Lives Matter! ✊🏾

async

The async function keyword can be used to define async functions inside expressions. async function expression (MDN)

Links about async

  1. JavaScript async and await in loops | Zell Liew

    posted on by Zell Liew

    I share some gotchas you have to watch out for when you use async and await in loops.

  2. async function expression

    posted on by MDN

    The async function keyword can be used to define async functions inside expressions.

Code sample

async function f3() {
var y = await 20;
console.log(y); // 20
}