the-event-loop Flashcards

1
Q

What is the JavaScript Event Loop?

A

after the call stack is finished, the webapi sends the task into the task queue, then the event loop checks the stack and if there are no other tasks in the stack, the event loop sends the task into the stack to run 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 the execution of additional JavaScript in the Node.js process must wait until a non-JavaScript operation completes.

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