JavaScript

Event Loop

Definition

The mechanism that allows JavaScript to perform non-blocking operations despite being single-threaded. It continuously checks if the call stack is empty, then moves tasks from the callback queue to the call stack for execution.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms