Accepted Answer · #56 · 2026-05-30
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 does `setTimeout(fn, 0)` not run immediately?
I used `setTimeout` with 0ms delay but the callback runs after my synchronous code. Why?
javascriptevent-loopsettimeout
Loading your progress...
Press 1 through 4, or tap a numbered choice, to answer. Back to hub