Promise.all Quiz
Multiple Choice Medium
Question
When does `Promise.all([p1, p2, p3])` reject?
Hint
Promise.all fails fast.
Explanation
Promise.all resolves only when all input promises resolve. It rejects as soon as any one promise rejects (fail-fast) — it does not wait for the others. The resolved value is an array of results in the same order as the input promises. Use Promise.allSettled if you want to wait for all to settle regardless of rejection.
Related Resources
Related Lessons
- Async JavaScript
Learn about Promise.all.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.