Beginner
JavaScript
Q37 / 100
What is the event loop?
Correct! Well done.
Incorrect.
The correct answer is B) The mechanism that allows JavaScript to perform non-blocking operations by queuing callbacks and executing them when the call stack is empty
B
Correct Answer
The mechanism that allows JavaScript to perform non-blocking operations by queuing callbacks and executing them when the call stack is empty
Explanation
JavaScript is single-threaded. The event loop picks tasks from the queue (macrotasks, microtasks) and executes them when the call stack is empty.
Progress
37/100