Advanced JavaScript
Q62 / 100

What is the event loop's relationship with the call stack and Web APIs?

Correct! Well done.

Incorrect.

The correct answer is B) Web APIs (timers, fetch) run outside the JS thread; callbacks are queued in the task queue and the event loop moves them to the call stack when it is empty

B

Correct Answer

Web APIs (timers, fetch) run outside the JS thread; callbacks are queued in the task queue and the event loop moves them to the call stack when it is empty

Explanation

JavaScript is single-threaded. Browser Web APIs handle async work. Callbacks are placed in macrotask/microtask queues and processed by the event loop when the stack empties.

Progress
62/100