7. Competition
JavaScript is single-threaded and non-preemptive. These words
mean that the evaluator does only one thing at a time and does only
that thing until it is completed. There are two major consequences:
On the other hand, the primitive JavaScript runtime library (for
example, the one provided by browsers) knows how to perform actions
in parallel, such as fetching pages, images, and scripts, and processing
them appropriately once their content has been obtained. Communication
between these two worlds takes place via events and callbacks. The
term callback can also be translated as "return function," but this
is less concise than "continuation,"...
You do not have access to this resource.
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed?
Log in!
Ongoing reading
Competition