QuizNot attempted
Why promises beat callbacks
1–4 to choose, Enter to submit
Show answer & explanation
Correct answers:
- A promise settles exactly once, so a buggy library can't call you back twice
- Errors propagate down a chain to one
.catch - Composition:
Promise.all/race/anyfor parallel work
- A promise settles exactly once (later resolve/reject calls are ignored), errors skip down the chain to a single
.catch, and combinators likePromise.all/race/anycompose parallel work. - Not 'another thread': promise callbacks still run on the main thread as microtasks
- promises change control flow, not concurrency.