the-event-loop Flashcards
1
Q
What is the JavaScript Event Loop?
A
The event loop is a type of event running on the call stack(records where in the programme we are) whether async or sync
2
Q
What is difference between “blocking” and “non-blocking” with respect to how code is executed?
A
blocking is a set of code that closes off the call stack till its function is complete, everything else can wait
Non-blocking just queues or defers something or itself until the stack is clear and its function runs complete