QuizNot attempted
Picking a Promise combinator
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
Promise.allSettled
Promise.allSettlednever rejects and gives a{ status, value | reason }for every input, so you can render the successes and show an error per failure.- Not Promise.all: rejects on the first failure and you lose the other results.
- Not Promise.race: settles with only the first one to finish.
- Not Promise.any: resolves with only the first success (good for mirrors and fallback CDNs).