The Event Loop Flashcards

1
Q

What is the JavaScript Event Loop?

A

The Event Loop is separate from the JavaScript engine and executes queued sub-tasks when the stack is clear.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is different between “blocking” and “non-blocking” with respect to how code is executed?

A

Blocking code is executed on the call stack. Non-blocking code is code put into the callback queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly