Latest - JavaScript
Why does setTimeout(fn, 0) run after a Promise, and why does code after await come back later? Step through the call stack, the microtask queue and the macrotask queue one line at a time, and guess the output before you look.
- 6 min