37. The JavaScript event loop

  1. JavaScript is single threaded, that means it can only do one thing at a time.

  2. The JavaScript scheduler is non-preemptive, that means you have control until you voluntarily relinquish it. (Sort of.)