← JavaScript for Real
Lesson 4 · zap JavaScript for Real
Async, Promises, Await
Run work in parallel and handle failure without nesting.
Before you start
JavaScript has one thread. Async work is queued and resumed by the event loop, which is why await doesn't block the page — it yields. The real skill is knowing when to await sequentially and when to fire everything at once.
5 exercises·up to 87 XP·5/5 hearts