JS Event loop Flashcards

1
Q

What is the JavaScript Event Loop?

A

Event loop looks at stack and looks at the task queue if the stack is empty it takes the first thing on the queue 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 anything sitting on the stack which can’t be completed

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