JavaScript

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:

Sections