the-event-loop Flashcards

1
Q

What is the JavaScript Event Loop?

A

Looks at the stack and task queue, if the stack is empty, it takes the first thing on the queue and pushes it onto the stack which 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 refers to operations that block further execution until that operation finishes (synchronous). Non-blocking refers to code that doesn’t block execution (asynchronous)

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