Build the mental model.
A closure retains access to its lexical environment. Follow what is captured, what can change, and what stays reachable.
Read the closures chapterThinking / Frontend Engineering Wiki
Connected explanations for frontend engineers who want to understand the mechanism, articulate the trade-offs, and carry the reasoning into their work.
The function returns.
The binding stays reachable.
countnext()A growing system.
Availability is shown at each entry point.
01 / One topic, four modes
Start with closures: an available chapter connects lexical scope to mutation, callbacks, and memory. Handbooks and Q&A are ready to explore; the reference and practice modes are still growing.
A closure retains access to its lexical environment. Follow what is captured, what can change, and what stays reachable.
Read the closures chapterMove from a short answer to the deeper reasoning behind scope, callbacks, and shared bindings.
Explore JavaScript Q&AThe planned reference mode brings comparisons, APIs, and debugging checklists into a compact format.
View the reference roadmapThe planned practice mode covers output prediction, debugging, coding, and architecture prompts.
View the practice roadmapWhat does each call return? Explain why the value changes even though makeCounter has finished.
function makeCounter() {
let count = 0;
return () => ++count;
}
const next = makeCounter();
next(); // ?
next(); // ?The calls return 1 and 2. Both use the same captured count binding. Returning from makeCounter does not remove that binding while next still retains access to it.
02 / Find your entry point
All 12 curriculum tracks are shown here. Start with available JavaScript material, explore expanding subjects, or inspect the phased roadmap for what comes next.
Runtime behavior, language semantics, and the mental models behind everyday code.
Explore the trackModel data, narrow uncertainty, and design contracts that stay maintainable.
Explore the roadmapUnderstand rendering, state, Effects, and component boundaries.
Explore the trackRecognize reusable structures and patterns behind common problems.
Explore the roadmapConnect events, rendering, networking, storage, and workers.
Explore the roadmapTurn requirements into explicit ownership, resilience, and trade-offs.
Explore the roadmapBuild semantic, responsive interfaces that people can use.
Explore the roadmapChoose useful boundaries and test asynchronous product behavior.
Explore the roadmapFollow a build-along roadmap from routing to secure deployment.
Explore the roadmapMeasure loading, rendering, interaction, and memory before optimizing.
Explore the trackReason about browser threats, identity, and protected data.
Explore the roadmapExplore schemas, client caching, API evolution, and reliability.
Explore the roadmapStart with one concept.
Follow the connections.