Skip to content

QuizNot attempted

Why promises beat callbacks

Which are real advantages of promises over error-first callbacks?

Select all that apply.

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 / any for parallel work
  • A promise settles exactly once (later resolve/reject calls are ignored), errors skip down the chain to a single .catch, and combinators like Promise.all/race/any compose parallel work.
  • Not 'another thread': promise callbacks still run on the main thread as microtasks
  • promises change control flow, not concurrency.