JavaScript: Mental Models & Labs
Learn what JavaScript is actually doing, one experiment at a time.
How the Labs Work
Each lab follows the same shape, in order:
- One mental model
- What the engine is doing internally
- A tiny experiment
- Predict before running (when relevant)
- Run it
- Explain the result — what you wrote vs what the engine effectively does
- Change one thing
- Predict again
- Connect it back to the mental model
- A tiny comprehension check
Get Started
What This Is Not
Not a syntax reference, not an app-building tutorial, not gated behind quizzes to advance. Experiments stay intentionally small — the goal is understanding why JavaScript behaves the way it does, not shipping a project. Skip around if a later lab pulls you in; just make sure any prerequisite concepts it names are ones you've already done.
Static HTML, no build step.