A COURSE FROM THE VERY BEGINNINGJavaScript,
JavaScript,
understood.
Start with what a program, value, and variable are. Then learn how JavaScript makes decisions, uses functions, handles data, and works in the browser. Each chapter defines its terms, explains the rules, and walks through code line by line so you can understand how to write your own.
Begin with the language31 detailed chapters7 connected parts0 read in this browser
No previous programming knowledge is needed. Follow the chapters in order: each one introduces the terms it uses, develops the idea in plain language, and explains two examples. The browser chapters also explain the page features their code refers to. Your reading progress stays in this browser.
THE READING ROUTE
Seven parts. One clearer picture.
01 / 07
The language
01What JavaScript actually doesA language, an engine, and an environment are three different things.5 MIN↗02Values have kindsTypes describe what a value is, not what a variable may forever hold.6 MIN↗03Two kinds of absenceUnderstand undefined, null, and the choice to provide a default.5 MIN↗04Conversion and equalityUnderstand comparisons by noticing when JavaScript changes a type.7 MIN↗
02 / 07
Flow and scope
05How a program is readExpressions produce values; statements guide what happens.5 MIN↗06Truth and short circuitsConditions use truthiness, and logical operators can return non-booleans.6 MIN↗07Bindings and blocksNames live in scopes, and const protects a binding rather than an object.6 MIN↗08Loops are repeated decisionsChoose a loop by what changes and what ends the repetition.5 MIN↗
03 / 07
Functions
09Functions make promisesA function has inputs, a result, and assumptions worth naming.6 MIN↗10A function remembersClosures carry access to the scope where a function was created.7 MIN↗11Functions are valuesPassing behavior lets one function shape another's work.6 MIN↗12The meaning of thisthis is determined by the call shape, except in arrow functions.7 MIN↗
04 / 07
Data and objects
13Objects have identityA property collection is also one particular thing in memory.6 MIN↗14The cost of a copySpread copies the outer container, not an entire object graph.7 MIN↗15Taking data apartDestructuring names parts; spread gathers or copies parts.5 MIN↗16Objects can delegateClasses are a readable surface over JavaScript's prototype model.7 MIN↗
05 / 07
Collections and text
17What makes something iterableIteration is a protocol that arrays, strings, and other values can follow.6 MIN↗18Keys and uniquenessMap and Set express relationships that plain objects and arrays can obscure.6 MIN↗19Text is more than charactersJavaScript strings use UTF-16, which shapes indexing and length.7 MIN↗20Patterns over textA regular expression describes a match, not a complete understanding of text.7 MIN↗
06 / 07
Time and modules
21Modules draw boundariesImports and exports make dependencies explicit.6 MIN↗22Errors are signalsThrow when a normal result cannot honestly describe what happened.6 MIN↗23One turn at a timeThe event loop coordinates work without making synchronous code parallel.7 MIN↗24A promise is a future resultPromises describe eventual success or failure and compose dependent steps.7 MIN↗25Reading asynchronous flowasync and await change the shape of code, not the nature of a promise.6 MIN↗
07 / 07
The browser
26A page becomes a treeThe DOM is a living object model of a document.6 MIN↗27An interaction travelsEvents identify what happened and move through the document tree.7 MIN↗28A request is a conversationfetch resolves for HTTP errors; status and body need separate checks.7 MIN↗29Input crosses a boundaryBrowser validation helps people; server validation protects a contract.6 MIN↗30Interfaces reflect stateA small state model prevents a page from showing contradictory messages.7 MIN↗31Trust has boundariesThe browser is public; secrets and authority belong on the server.7 MIN↗
Built with curiosity. By Navan Sami. ↗JavaScript · Understand the language behind the interface.