This repository provides a deep dive into how JavaScript works under the hood. It includes detailed diagrams (created using tldraw) and code examples.
- High level overview of JavaScript
- JavaScript Engine
- Components of JavaScript Engine
- Compilation and Interpreter Working Process
- Call Stack Deep Dive
- Global Execution Context
- Variable Environment
- Scope Chain
- This Keyword
- Execution Context
- Global Execution Context
- Deep dive inside Execution Context
-
Variable Environment
-
-
Type Scope
- Global Scope
- Function Scope
- Block Scope
Only variable lookup scope chain is allowed
-
-
thisin normal function callingthisin methods callingthisin arrow functionthisin event listener
thisnever points to itself or the variable environmentcall()apply()bind()
-
Arguments keywords in Execution Context
-
Memory Management Life Cycle
- Memory Allocation
- Call Stack
- Heap Memory
- Memory Allocation
-
Shallow copy and Deep copy
-
Garbage Collection
- Mark and Sweep algorithms
-
- Interview Questions