JS Essentials: The JavaScript Engine
Published in
11 min readJun 15, 2019
Everything you need to know about the JavaScript engine, scopes, closures, the event queue, and how to apply this knowledge.
Table of Contents
— Prerequisites
— Definitions
— The Call Stack
— — 1. Variable & Function Declarations (creation phase)
— — 2. Execution
— Scope and The Scope Chain
— — Function/Lexical Scope
— — Block Scope
— The Event Loop
— Code Examples
— — Simple Closure
— — Blocking Code
— — Defer a Function
— — Memoize with Closures
— Resources and Links