Async

async / await

Learn how to use async / await in JavaScript.

async / await

Documentation for async / await in JavaScript.

Syntax

const data = await fetch(url);

Example

// Practical usage
const data = await fetch(url);
console.log("Executed successfully.");

Notes

JavaScript provides powerful built-in methods for the web.

Try It Yourself

You can run JavaScript directly in the BrowserCode Playground.