Async JavaScript & APIs
Move beyond synchronous scripts: coordinate timers, promises, network requests, loading states, and cancellation without losing control of the UI.
Functions, callbacks, objects, arrays, and basic DOM rendering.
Predict asynchronous execution order, compose promises, use async/await and fetch, surface loading and error states, and cancel stale work.
Read in order, or jump to what you need.
Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.
- 13.01Callbacks & the Event Loop4 min
Trace how JavaScript schedules timers, callbacks, and promise reactions so you can predict the order of asynchronous output.
- 13.02Promises & Combinators4 min
Represent asynchronous results as values, chain work without nesting, and coordinate several operations with the built-in combinators.
- 13.03async/await & Cancellation4 min
Write asynchronous code that reads like ordinary statements, run independent work concurrently, and cancel requests that are no longer needed.
- 13.04Fetch, HTTP & JSON4 min
Speak HTTP from the browser, read JSON safely, and design loading, empty, and error states that tell the truth.
- 13.05Project: API DashboardProject4 min
Build a complete dashboard that fetches records, renders accessible cards, filters them, and cancels stale requests.
Ready to move on?
Build an API dashboard that renders loading, success, empty, and error states and cancels an outdated request when the filter changes.
Open the module self-check