async function - JavaScript | MDN

async function

The async function declaration creates a binding of a new async function to a given name. The await keyword is permitted within the function body, enabling asynchronous, promise-based behavior to be written in a cleaner style and avoiding the need to explicitly configure promise chains.

You can also define async functions using the async function expression.

Printed 2026-06-28.

(echo:: @ )