Revolut Interview Question

Micro vs Macrotasks in the event loop, how they work, just briefly explain.

Interview Answer

Anonymous

May 8, 2025

Macrotasks are queued and executed 1 step at a time, then checks Microtask queue, if it's empty, it processes another Macro. Microtasks when present are executed in priority to Macrotasks, and until stack exhaustion to empty.