the-event-loop Flashcards

1
Q

What is the JavaScript Event Loop?

A

A simple task that looks at the stack and task queue if stack is empty it takes the first thing on the queue and push it. So that other codes can run simultaneously.

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 where other codes cannot be ran until the current call back has been completed. where non-blocking it can continue on to run other codes.

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