← 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?
- A.await a; await b; await c;
- B.await Promise.all([a, b, c])
- C.Promise.race([a, b, c])
- 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 →