the-event-loop-recap Flashcards
1
Q
What is the JavaScript Event Loop?
A
it executes the code, collects and processes events, and executes queued sub-tasks
something is done, it pushes it back to the stack so V8 engine can execute the code.
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 while non-blocking refers to code that doesn’t block execution.
Blocking as long as they are on the stack