Accepted Answer · #7 · 2026-04-11
Which answer is correct?
Difficulty 3/3
How to play
Read the Stack Overflow–style question, then pick the one correct answer from four plausible options. Watch out — wrong answers often have high fake votes.
Why doesn't `await` work inside `forEach`?
I'm trying to process an array of URLs sequentially with `await fetch(url)` inside `forEach`, but all requests fire at once.
javascriptasyncforeach
Loading your progress...
Press 1 through 4, or tap a numbered choice, to answer. Back to hub