Answer
The event loop coordinates tasks and microtasks around synchronous JavaScript execution. When the stack is clear, queued work can run according to queue rules.
The event loop coordinates tasks and microtasks around synchronous JavaScript execution. When the stack is clear, queued work can run according to queue rules.