🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Async JavaScript: all 10 questions

Quiz: Async JavaScript · Question 8 of 10

Which Promise helper gives the result of the first promise to SUCCEED, ignoring earlier failures?

Which Promise helper gives the result of the first promise to SUCCEED, ignoring earlier failures?

  1. A.Promise.all
  2. B.Promise.race
  3. C.Promise.any
  4. D.Promise.allSettled
Answer & explanation

Correct answer: Promise.any

race takes the first to settle (success or failure); any waits for the first success.

Can you get the rest right without peeking?

Take the timed Quiz: Async JavaScript quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →