Chapter Quiz: Mastering Async JavaScript

Mastery Assessment: Mastering Async JavaScript

Complete this assessment with 100% score to master this chapter.

01Which `Promise` static method should be used when you need to wait for multiple independent requests and handle their results even if some fail?

02What happens if a promise in a `Promise.all()` call rejects?

03Why is 'Serial Await' (the waterfall effect) considered a performance anti-pattern?

04In the JavaScript Event Loop, how is the Microtask Queue prioritized relative to the Macrotask Queue?

05Which `Promise` method fulfills as soon as any promise fulfills, but only rejects if *all* promises reject?

06What is 'Microtask Starvation'?

07What does it mean for a Promise to be 'Settled'?

08How can you implement a timeout for a Promise operation using `Promise.race()`?

09What is the global event fired when a Promise rejects but has no `.catch()` or `try/catch` handler?

10In an `async` function, what happens if you `await` a value that is not a Promise?