HTML gives a page structure, CSS gives it style and JavaScript gives it behavior: menus, live form validation, whole single-page applications. The same language also runs servers, build tools and desktop apps.
This chapter teaches the language itself, as standardized in ECMAScript 2026: values and types, objects, functions, promises, classes and the built-in library, from strings and arrays to Intl, Proxy and regular expressions. Browser APIs such as the DOM come in HTML DOM APIs and Web APIs, and TypeScript, which adds static types on top, in TypeScript.
Every example is runnable, with output captured from a real engine: paste it into a browser console or run it with Node.js 2,131 (Node.js Quick Start).
What you will learn:
Where JavaScript came from, how engines execute it and how new features are standardized
Variables, types, objects, flow control, functions, asynchrony and classes
The built-in objects: numbers, strings, arrays, typed arrays, collections, iterators, dates and more
Memory, performance and debugging, what each ECMAScript edition added, and essential libraries
Sections
- Introduction
- Variables
- Objects
- Flow Control
- Functions
- Promises and Asynchrony
- Classes
- undefined and null
- Booleans
- Numbers
- Symbols
- Strings
- Arrays
- Typed Arrays and Binary Data
- Sets and Maps
- Iterables and Iterators
- Math
- Date
- Regular Expressions
- Intl
- Proxy and Reflect
- Operators
- Strict Mode
- Memory and Performance
- Version Features
- Essential JavaScript Libraries
- Test Yourself!