Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How does JavaScript work?

How does JavaScript work?

What is Javascript: a single-threaded non-blocking asynchronous concurrent language?

Ulugbek Miniyarov

May 25, 2017
Tweet

More Decks by Ulugbek Miniyarov

Other Decks in Programming

Transcript

  1. V8 Engine (Chrome’s JS Runtime) ChakraCore (Egde’s JS Runtime) Nitro

    (Safari’s JS Runtime) SpiderMonkey (Firefox’s JS Runtime) JavaScript Engines:
  2. JavaScript has a Call Stack, an Event Loop, a Callback

    Queue, and some other apis (Ajax, Timing ...) Are they inside JavaScript Engines? - Only Call Stack with Heap
  3. Asynchronous feature is not included in JavaScript Engine. Browsers /

    NodeJS handles asynchronous part: - XHR Request - Timing (setTimeout, setInterval) - Events (onClick, onFocus i.e.)