JavaScript · Senior frontend preparation

Understand JavaScript deeply.
Explain it clearly.

A rigorous handbook connecting ECMAScript internals, browser behavior, performance, debugging, and React—not a collection of trivia.

10chapters available
76chapters planned
4interview levels
Your study library

Handbook Parts

Choose a part, then open the chapter you want to study.

Your progress0 of 10 chapters · 0%
0%
Part IRuntime Foundations9 readings available
0112 min

JavaScript Runtime Model

Many weak interview answers treat JavaScript, V8, browser APIs, the event loop, and React as one machine. That model cannot explain why document exists only in a browser, why promise reactions are delayed, or why a React DOM update may appear before paint.

Read chapter
0210 min

Execution Contexts

Execution contexts explain how control moves between scripts, functions, generators, and async functions. Interviewers rarely want a list of specification fields. They want to know whether you can identify which invocation is running, which invocation owns a local value, and what happens when evaluation returns or suspends.

Read chapter
039 min

The Call Stack

Stack questions test whether you can reconstruct the path to a failure, understand why an error was—or was not—caught, and distinguish a blocked main thread from an asynchronous wait. These skills matter when debugging production bundles, React render failures, and callbacks whose visible stack no longer includes their scheduling origin.

Read chapter
049 min

Lexical Environments and Environment Records

“JavaScript searches outer scopes” predicts simple examples, but senior interviews go further: Why can an inner let throw before its declaration instead of reading an outer variable? Why does top level let differ from top level var ? Why do imports update when an exporter changes?

Read chapter
058 min

Scope and Identifier Resolution

Senior scope questions test more than “inner code can access outer variables.” They combine callbacks, shadowing, modules, temporal dead zones, globals, and property access. The core skill is identifying which lookup mechanism applies.

Read chapter
0611 min

Closures

Closures power callbacks, event handlers, promises, memoization, factory functions, module APIs, and nearly every React component. They are also a frequent source of weak interview answers. Saying “the inner function remembers the outer variables” predicts some behavior, but it does not explain mutation, shared state, loop bindings, stale React callbacks, or memory retention.

Read chapter
079 min

`this` Binding

Weak explanations say that this refers to “the current object” or “the object that owns the function.” Neither rule predicts detached methods, callbacks, arrows, bound functions, constructors, or strict mode. Senior interviews expect you to read the call expression and identify the receiver without guessing from where the function was defined.

Read chapter
0811 min

Memory Management and Garbage Collection

“JavaScript has garbage collection” does not mean applications cannot leak memory. The collector can reclaim only state that is no longer reachable. A forgotten listener, unbounded cache, or module level registry can keep an obsolete interface and its entire object graph alive indefinitely.

Read chapter
Review4 min

Part I Summary

This chapter is a compact interview ready review of the runtime foundations in Part I. It is designed to be sufficient for a quick prep before a senior frontend discussion.

Review Part 1
Part IIValues and Objects2 readings available · 6 planned
Part IIIFunctions and Abstractions0 readings available · 8 planned

Chapters for this part are being prepared.

View 8 planned chapters
  1. 17Function Creation and Invocation
  2. 18Arrow Functions
  3. 19Higher-Order Functions
  4. 20Partial Application and Currying
  5. 21Function Composition
  6. 22Recursion and Stack Limits
  7. 23Iterators and Iterables
  8. 24Generators
Part IVAsynchronous JavaScript0 readings available · 10 planned

Chapters for this part are being prepared.

View 10 planned chapters
  1. 25The Event Loop
  2. 26Tasks, Microtasks, and Rendering Opportunities
  3. 27Promises
  4. 28Promise Resolution and Thenable Assimilation
  5. 29Async/Await
  6. 30Error Propagation in Asynchronous Code
  7. 31Fetch and HTTP Cancellation
  8. 32AbortController and AbortSignal
  9. 33Concurrency Control
  10. 34Web Workers and Worker Communication
Part VModules and Code Loading0 readings available · 8 planned

Chapters for this part are being prepared.

View 8 planned chapters
  1. 35ES Modules
  2. 36CommonJS
  3. 37Module Evaluation and Caching
  4. 38Circular Dependencies
  5. 39Dynamic Imports
  6. 40Bundlers and Module Graphs
  7. 41Tree Shaking
  8. 42Code Splitting
Part VIBrowser Runtime0 readings available · 8 planned

Chapters for this part are being prepared.

View 8 planned chapters
  1. 43DOM Architecture
  2. 44Browser Event Dispatch
  3. 45Capturing, Bubbling, and Delegation
  4. 46Rendering Pipeline
  5. 47Style Calculation, Layout, Paint, and Compositing
  6. 48Forced Synchronous Layout
  7. 49Browser Scheduling APIs
  8. 50Storage and Cross-Context Communication
Part VIIPerformance and Engine Behavior0 readings available · 8 planned

Chapters for this part are being prepared.

View 8 planned chapters
  1. 51Measuring JavaScript Performance
  2. 52Memory Leaks and Retained References
  3. 53Hidden Classes and Object Shapes
  4. 54Inline Caching
  5. 55Optimization and Deoptimization
  6. 56Allocation Patterns
  7. 57Long Tasks and Main-Thread Contention
  8. 58Performance Trade-offs in Data Structures
Part VIIIReact Connections0 readings available · 10 planned

Chapters for this part are being prepared.

View 10 planned chapters
  1. 59Closures in React Components
  2. 60Stale Closures
  3. 61Referential Equality
  4. 62Dependency Arrays
  5. 63State Updates and Batching
  6. 64React Scheduling
  7. 65Render and Commit Phases
  8. 66Concurrent Rendering
  9. 67External Stores and Subscriptions
  10. 68JavaScript Performance Patterns in React
Part IXInterview Preparation0 readings available · 8 planned

Chapters for this part are being prepared.

View 8 planned chapters
  1. 69How to Explain JavaScript Internals
  2. 70Common JavaScript Interview Misconceptions
  3. 71Output-Prediction Questions
  4. 72Debugging Questions
  5. 73Performance Questions
  6. 74Senior-Level Follow-up Questions
  7. 75Full JavaScript Mock Interview
  8. 76Final Review and Cheat Sheets