TRADEOFF BATTLE
Promise.all vs sequential awaits in JavaScript
A page needs several independent requests before it can render. Would you run them with Promise.all or await them one by one?
The prompt
You are building a JavaScript dashboard page that needs a user profile, permissions, and notification preferences before the initial UI can render correctly. These requests go to different endpoints and do not depend on each other’s results. In the interview, the panel asks whether you would load them with `Promise.all` or await them sequentially one after another.
Which direction would you defend for this prompt, and how would you explain when the other option is still the better answer?
Pick the direction you would defend
You are not looking for the universal winner. You are picking the strongest answer for this prompt.
Commit to a direction
Pick the option you would defend, then reveal the stronger interview framing for this prompt.