JavaScript & TypeScript

Event Loop

/ɪˈvent luːp/

Definition

The mechanism in JavaScript that handles asynchronous callbacks by cycling through the call stack and task queue.

Example in context

"setTimeout with 0ms doesn't run immediately — it queues after the current stack clears via the event loop."

Related terms

Practice this term

Master Event Loop in context by working through exercises in the JavaScript & TypeScript module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.