Lesson 33 of 34 · Async JavaScript
Quiz: Async JavaScript and the Event Loop
Asynchronous code is where many JavaScript developers get tripped up, so it's worth one more check. Predict each answer before you pick it, especially the output-order questions.
What this quiz covers
The questions check what you learned in the Async JavaScript chapter of Learn JavaScript. Not sure about a topic? Review its lesson first:
- The JavaScript Event Loop and setTimeout
Understand the JavaScript event loop: the call stack, task queue and microtasks, and schedule code for later with setTimeout and setInterval.
- JavaScript Promises: then, catch and Chaining
Learn JavaScript promises: create them with new Promise, handle results with then, catch and finally, chain async steps and handle errors.
- JavaScript async/await and Promise.all
Write clean asynchronous JavaScript with async/await, handle errors with try/catch, and run tasks in parallel with Promise.all and Promise.allSettled.
Keep learning
Need a quick reminder? The JavaScript cheat sheet has every topic of Learn JavaScript on one page.
Lesson last updated on .