Reference lesson

Async JavaScript and Fetch

Request data without blocking the page.

About 8 minutes

What you’ll learn

Promises represent work that completes later. async and await make promise-based code read like a clear sequence with explicit error handling.

Try it yourself

Press Ctrl/Cmd + Enter to run.