Which of these correctly runs two async operations in parallel?
- A const a = await getA(); const b = await getB();
- B const [a,b] = await Promise.all([getA(), getB()]);
- C await getA(); await getB();
- D for (const f of [getA,getB]) await f();
Answer
const [a,b] = await Promise.all([getA(), getB()]);
Sequential awaits start the second request only after the first completes. Promise.all starts both immediately and waits for both.





