JavaScript Basics
The syntax of JavaScript in one page: variables, types, operators, functions, conditions, loops, arrays, objects and the mistakes beginners make with each.
Try: python lists, javascript functions, syntax error, first project
How JavaScript actually works in the browser. Variables, functions, the DOM, events and async code, explained with examples you can paste into a console.
23 guides
The syntax of JavaScript in one page: variables, types, operators, functions, conditions, loops, arrays, objects and the mistakes beginners make with each.
What JavaScript is, where it runs, what it is used for, and how it relates to HTML and CSS — plus your…
The two structures JavaScript is built on: how to create, read, update and loop over each, plus copying, destructuring and the reference…
You called something that is not callable. The five ways that happens, from forEach on a NodeList to .then on a plain…
How to add a library to a project — CDN, npm or a bundler — how to read documentation efficiently, and how…
The most common JavaScript error, decoded: you asked for a property of something that does not exist yet. How to read the…
The ternary operator, logical AND and OR, and the nullish coalescing operator — what each one-liner is genuinely good for, and when…
The JavaScript features that became usable in the last two years and matter day to day: Temporal replaces Date, using handles cleanup,…
Reading form values, collecting a whole form in one line with FormData, validating at the right moment, and the preventDefault everyone forgets.
Named exports, default exports, and why named ones are usually better. Plus the import errors that come from mixing ES modules with…
The browser APIs your JavaScript can use directly — fetch, storage, geolocation, clipboard, observers — and how to use each without breaking…
Use the browser’s built-in validation first, then add JavaScript for the parts it cannot do — with error messages screen readers actually…
Related topics
The fastest way to improve is to read one guide, then build the thing it describes. Start with the basics, or jump straight to a project.