Chapter 18
Async functions and the event loop
How JavaScript schedules work — jobs, tasks, and microtasks — howasync/await maps onto promises, and how to run and cancel async work well.7 questions
- 010How does the event loop work?Coming soonCoremedium
- 020Predict the order:
setTimeoutvs promises vsqueueMicrotask.Coming soonCoremedium - 030How does
async/awaitwork under the hood?Coming soonCorehard - 040Sequential vs parallel
await— andawaitinside loops?Coming soonmedium - 050Is JavaScript single-threaded?Coming soonmedium
- 060How do you cancel async work?Coming soonmedium
- 070Implement a concurrency-limited task runner with retry.Coming soonhard