The Handbook Enchiridion
221 short cards, one idea each, ending with what to tell your agent.
Arrays
An ordered list of values, counted from zero.
Async and promises
Code that waits for something slow without freezing the page.
Callbacks
A function you hand to other code to run later.
Conditionals
Code that picks a path: if this, do that, otherwise something else.
Data types
Text, number or true/false: what kind of value it is.
Dates and time zones
Why a date can shift by a day between server and screen.
Destructuring and spread
Shorthand for pulling values out of objects and copying them.
Functions
A named, reusable recipe: inputs in, result out.
Imports and modules
How one file borrows code from another file or package.
JSON
The text format apps use to send data to each other.
Loops
Code that repeats a step for every item in a list.
Map, filter and reduce
Three ways to turn one list into another list or one value.
Nested data
Objects inside arrays inside objects: data with layers.
Null and undefined
JavaScript's two ways of saying there's nothing here.
Objects
A bundle of named values that describe one thing.
Operators and comparisons
The symbols that do maths and compare values: +, ===, &&.
Reading errors
How to get the useful part out of a red error message.
Regular expressions
A compact pattern language for matching and checking text.
Scope
Where in the code a name exists and can be used.
Stack traces
The trail of function calls that led to an error.
The terminal
A text window where you type commands to your computer.
TypeScript types
Labels that say what shape a value should have.
Value vs reference
Why changing a copy sometimes changes the original too.
Variables
A name that holds a value your code reuses.