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
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)