the-event-loop-Q&A Flashcards
1
Q
What is the JavaScript Event Loop?
A
JavaScript has a runtime model based on an event loop, which is responsible for executing the code, collecting and processing events, and executing queued sub-tasks.
2
Q
What is different between “blocking” and “non-blocking” with respect to how code is executed?
A
”=” is blocking assignment and “<=” is nonblocking assignment. “=” executes code sequentially inside a begin / end, whereas nonblocking “<=” executes in parallel.