All tutorials
JavaScript tutorials
The web's programming language — variables, functions, arrays & objects, the DOM, events, and async data with fetch.
- Chapters
- 16
- Total reading
- 4h 7m
- Level
- Beginner to Advanced
Chapters
- Chapter 115 min readStart
JavaScript Fundamentals
Variables, data types, operators and control flow — the core of the language every website runs on. - Chapter 215 min readStart
Functions & Scope
Declare and call functions, arrow functions, parameters and defaults, scope and closures — the reusable unit of JavaScript. - Chapter 316 min readStart
Arrays & Objects
Store collections and structured data, then transform them with map, filter and reduce — the heart of modern JavaScript. - Chapter 415 min readStart
The DOM & Events
Read and change the page from JavaScript — selecting elements, updating content, and responding to clicks and input. - Chapter 516 min readStart
Async JavaScript & Fetch
Handle time and network with Promises, async/await, and the Fetch API — how modern apps talk to servers without freezing. - Chapter 615 min readStart
Strings & Regular Expressions
Work with text properly — the essential string methods, template literals, and a practical introduction to regular expressions. - Chapter 714 min readStart
Numbers, Math & Dates
Handle numbers safely (including the floating-point gotcha), format currency, and work with dates the modern way. - Chapter 816 min readStart
Array Methods in Depth
Beyond map/filter/reduce — find, some, every, sort, flat, and the difference between mutating and non-mutating methods. - Chapter 916 min readStart
Objects, this & Prototypes
Go deeper on objects — methods and the this keyword, copying vs referencing, and how prototypes power inheritance. - Chapter 1015 min readStart
Classes
Model your domain with ES6 classes — constructors, methods, inheritance, static members, and getters and setters. - Chapter 1115 min readStart
Error Handling & Debugging
Catch and throw errors properly, create custom error types, handle async failures, and debug with the browser DevTools. - Chapter 1215 min readStart
ES Modules & Tooling
Split code across files with import/export, understand named vs default exports, and see how npm and bundlers fit together. - Chapter 1316 min readStart
Functional Programming
Write cleaner code with pure functions, immutability, higher-order functions, composition and currying. - Chapter 1417 min readStart
The Event Loop & Advanced Async
How JavaScript stays responsive on one thread — the event loop, micro/macro tasks, and the Promise combinators for running work in parallel. - Chapter 1516 min readStart
JSON, Storage & APIs
Serialize data with JSON, persist it in the browser with localStorage, and talk to REST APIs with fetch, headers and methods. - Chapter 1615 min readStart
Modern JavaScript & Best Practices
The ES2020+ features you should use daily — optional chaining, nullish coalescing, destructuring — plus the habits of clean, professional code.
