🎙 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 4 of 10

Which runs three independent requests in parallel and waits for all?

Which runs three independent requests in parallel and waits for all?

  1. A.await a; await b; await c;
  2. B.await Promise.all([a, b, c])
  3. C.Promise.race([a, b, c])
  4. D.setTimeout(a, b, c)
Answer & explanation

Correct answer: await Promise.all([a, b, c])

Promise.all waits for all of them, running concurrently.

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 →