Skip to content
JavaScript·Intermediate·Conceptual·1 min read

What does the JavaScript event loop coordinate?

Short interview answer

It coordinates execution between the JavaScript call stack and host-managed queues. A task runs to completion; after it finishes, the runtime drains eligible microtasks before the browser gets its next rendering opportunity and selects another task.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Event loop

Related questions