vivo Internet Technology
Sep 16, 2020 · Fundamentals
JavaScript Event Loop: Macro Tasks vs Micro Tasks Execution Analysis
The article examines JavaScript’s event loop by contrasting macro‑tasks and micro‑tasks, tracing their spec‑defined origins, showing how callbacks, timers, Promises, async/await and generators are queued, and highlighting differences between browsers and Node.js (pre‑v11 vs v11+) that affect execution timing.
Asynchronous ProgrammingBrowser ImplementationCallback Mechanism
0 likes · 12 min read