JavaScript Engine Internals
Deep-dive into how the JavaScript engine actually runs your code β from the event loop and call stack to closures, prototypes, and memory management.
Core Runtime
Async Model
Scope & OOP
Closures & Scope Chain
How lexical scoping works, closure memory model, and variable capture.
this Binding Rules
4 binding rules β default, implicit, explicit, new β plus arrow function lexical this.
Prototypal Inheritance
The prototype chain, __proto__ vs prototype, and how ES6 classes map to prototypes.
Memory & Modules
Garbage Collection (V8)
Mark-and-sweep, generational GC, Scavenger vs Mark-Compact, and memory profiling.
Module System (ESM vs CJS)
Static vs dynamic imports, tree-shaking, circular dependencies, and dual packages.
Memory Leaks & Debugging
Detached DOM nodes, closures over large scopes, WeakRef, and Chrome DevTools heap snapshots.