Skip to content

JavaScript: start here

JavaScript is the programming language of the web. Every browser runs it, and through runtimes such as Node.js it also powers servers, command-line tools, build systems and serverless functions. Even if your main back-end language is C#, Java or Python, you will meet JavaScript (or TypeScript, which compiles to it) as soon as you work on a user interface or the tooling around one.

This page explains what the language is, how its standard evolves, and how this section is organized, then gives a reading path.

The language is standardized as ECMAScript in the ECMA-262 specification, maintained by the TC39 committee. Since 2015 a new edition has been published every year, named after its year: ECMAScript 2015 (often called ES6) was the big modernization that added let/const, classes, modules, arrow functions and promises, and later editions add a handful of features each. ECMAScript 2026 is the latest published edition. A proposal becomes part of the standard after it reaches Stage 4, which requires two shipping implementations, so features usually work in current browsers and Node.js before the edition that contains them is published.

The language itself defines syntax, types and built-in objects such as Array, Map, Promise and JSON. Everything that talks to the outside world comes from the host environment:

  • Browsers add the DOM, fetch, localStorage, timers and Web APIs.
  • Node.js adds the file system, network servers, processes and its package ecosystem (npm).
  • Deno, Bun and edge runtimes offer similar server-side APIs with different defaults.

That split matters when you read documentation: Array.prototype.map behaves the same everywhere, while document exists only in browsers and fs only in server runtimes.

JavaScript is dynamically typed, single-threaded with an event loop for asynchronous work, garbage-collected, and supports both object-oriented (prototypes and classes) and functional (first-class functions and closures) styles.

Every complete sample in this section runs with Node.js 22 and shows its real output. Save it as a .mjs file and run node sample.mjs. The .mjs extension makes the file an ES module, which runs in strict mode and allows await at the top level. Node.js 22 is a maintenance LTS release supported until April 2027; the samples also run on newer releases.

  1. Basics, five tutorials in order: Values, types and operators, Control flow, errors and async basics, Functions, scope and closures, Objects, arrays and JSON and Strings, numbers and dates.
  2. Topic hubs, the modern features you will use daily: Core language, Async and modules and Objects and collections.
  3. Feature pages, one feature in depth each, from the features index.
  4. Release context in ECMAScript versions, and a self-check with JavaScript interview questions.
Area Purpose
Basics Beginner tutorials for the core language.
Thematic hubs Related modern features explained together, with reading paths.
Features Index of every feature page by topic and edition.
Features list A one-page checklist of language and platform topics.
Versions What each ECMAScript edition added.
Interview questions Common questions with short answers.