the-event-loop Flashcards

1
Q

What is the JavaScript Event Loop?

A

if the stack is empty, the event loop takes the first thing from the queue and pushes it on to the stack which effectively runs it

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 is when render queue is blocked from being able to execute due to slow code (which clogs up the cal stack or callback queue). non-blocking code allows moments for the render queue to execute.

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