JavaScript History and Versions

Updated · 8 min read
mediumES2026javascriptecmascripthistorytc39versions

JavaScript versions are named after editions of ECMAScript, the language's official specification. Knowing the history helps you read code from any era (a 2009 script looks very different from a 2026 module), understand why some odd behaviors can never change, and decide which features you can safely use. Since 2015, a new edition has been published every June, named by year: ES2015, ES2016 and so on up to ES2026, the edition this course teaches.

In One Minute

  • JavaScript was created at Netscape in 1995; ECMAScript standardized it from 1997.
  • ES3 (1999) and ES5 (2009) are the editions behind most older code; ES2015 (ES6) was the huge modern update.
  • Since 2015, editions are yearly and named by year; features go through TC39's stage 0 to 4 process.
  • The web can't break old sites, so mistakes like typeof null === "object" are permanent ("don't break the web").
  • Check what you can use with Baseline and MDN compatibility tables, not by edition year alone.

A Short History

YearMilestone
1995Brendan Eich creates the language at Netscape in about ten days; it ships in Netscape Navigator 2 as LiveScript, renamed JavaScript
1996Microsoft ships a compatible language, JScript, in Internet Explorer 3
1997ECMAScript 1, the first standard, published by Ecma International
1999ES3: regular expressions, try...catch, better string handling; the baseline for a decade
2008ES4, a very ambitious redesign, is abandoned
2009ES5: strict mode, JSON, Array.prototype.forEach/map/filter/reduce, Object.keys, getters and setters
2009Node.js brings JavaScript to servers
2015ES2015 (ES6): let/const, arrow functions, classes, modules, promises, template literals, Map/Set and more
2016 onwardOne edition every year, each with a few features
2026ES2026, the 17th edition, approved by Ecma on June 30, 2026

Reading Code from Each Era

The same task written in three eras, so you can recognize old code when you meet it:

modern.js▶ Try it
const payments = [{ name: "Navika", amount: 120 }, { name: "Advitha", amount: 45 }];
const total = payments.reduce((sum, { amount }) => sum + amount, 0);
const names = payments.map(({ name }) => name).join(", ");
console.log(`${names}: $${total}`);
Output
Navika, Advitha: $165
You seeIt's fromModern equivalent
var, function everywhere, string + joiningES3/ES5const/let, arrows, template literals
for (var i = 0; ...) over arraysES3for...of, array methods
IIFEs (function () { ... })()ES3/ES5Modules, block scope
"use strict"; at the top of filesES5Modules are strict automatically
Constructor.prototype.method = functionES3/ES5class
Callbacks for async workPre-2015Promises, async/await
require() / module.exportsNode.js CommonJSES modules

How Features Are Added: TC39

TC39 (Technical Committee 39 of Ecma International) designs the language. Its members include engineers from browser makers, companies and the community, and its work is public on GitHub. Every new feature is a proposal that moves through five stages:

StageMeaning
0An idea, not yet considered by the committee
1The committee agrees the problem is worth working on
2A draft design is chosen
2.7The design is approved; tests are being written
3Ready for engines to implement and ship
4Finished: two compatible implementations and tests exist; included in the next edition

Editions are snapshots: each June, everything that reached stage 4 in the past year goes into that year's edition. So a feature's "year" is when it was finished, and engines often ship it earlier, at stage 3.

"Don't Break the Web"

Billions of pages run JavaScript written over three decades, and browsers can't break them. So the language can only add, almost never remove or change:

Permanent quirkWhy it stays
typeof null === "object"A 1995 bug that pages rely on
== type coercionChanging it would break existing comparisons
var hoisting, sloppy modeOld scripts depend on them
Array.prototype.flatten was renamed flatAn old library added its own flatten, and changing its behavior would have broken sites (the "smooshgate" incident of 2018)

New behavior is opt-in instead: strict mode, modules, classes and new syntax change the rules only where you use them.

Which Features Can You Use?

QuestionWhere to check
Does every major browser support it?Baseline labels on MDN and web.dev: "Baseline Widely available" means supported in all major browsers for at least 30 months; "Newly available" means in all of them recently
Exact browser versionsMDN compatibility tables, caniuse.com
Node.js supportnode.green, the Node.js release notes
My project's browsersA Browserslist query in your build tools
feature-detect.js▶ Try it
const features = {
  "Promise.withResolvers (ES2024)": typeof Promise.withResolvers === "function",
  "Set.prototype.union (ES2025)": typeof Set.prototype.union === "function",
  "Error.isError (ES2026)": typeof Error.isError === "function",
  "Temporal (expected ES2027)": typeof globalThis.Temporal === "object",
};
for (const [name, ok] of Object.entries(features)) console.log(ok ? "yes" : "no ", name);
Output
yes Promise.withResolvers (ES2024)
yes Set.prototype.union (ES2025)
yes Error.isError (ES2026)
yes Temporal (expected ES2027)

All four exist in Node.js 26, where this example was checked. In code that must run in older browsers, test for the feature (as here) and load a polyfill, or avoid it.

Engines and Their Browsers

EngineUsed by
V8Chrome, Edge, Opera, Node.js, Deno
SpiderMonkeyFirefox
JavaScriptCoreSafari, Bun

Engines update with their browsers (every four weeks for Chrome and Firefox, several times a year for Safari), so new language features usually reach users within months of being finished.

In Practice

The Fee Tracker's README states its target clearly, so contributors know which features are allowed and how to check them:

README excerpt
Language level: ES2026 (Node.js 26 LTS; browsers: Baseline Widely available).
Allowed with feature checks: Temporal (polyfill for Safari before 27.3).
Not allowed: Math.sumPrecise in browser code (Node.js 26 needs a flag).
Lint: ecmaVersion 2026; npm run lint fails on unsupported syntax.

Common Mistakes

Copying pre-2015 patterns from old tutorials. Prefer the modern equivalents in the table above.

Assuming an edition year means support. Check Baseline or MDN for your audience's browsers.

Feature-detecting syntax at run time. It fails at parse time. Use build targets for syntax.

Expecting old quirks to be fixed. They're permanent; use the opt-in modern alternatives.

Practice

Challenge: Rewrite this ES5 snippet in modern JavaScript using const, an arrow function, destructuring and a template literal.

practice.js
var students = [{ name: "Srihitha", grade: 11 }, { name: "Navika", grade: 9 }];
var labels = students.map(function (s) { return s.name + " (grade " + s.grade + ")"; });
console.log(labels.join("; "));
Show solution
practice-solution.js▶ Try it
const students = [{ name: "Srihitha", grade: 11 }, { name: "Navika", grade: 9 }];
const labels = students.map(({ name, grade }) => `${name} (grade ${grade})`);
console.log(labels.join("; "));
Output
Srihitha (grade 11); Navika (grade 9)

Quick check: JavaScript versions

3 questions
1Which edition introduced let, const, classes and modules?
2What does stage 4 mean for a TC39 proposal?
3Why can't typeof null be changed to "null"?

Key Takeaways

EditionYearKnown for
ES31999Regular expressions, try...catch
ES52009Strict mode, JSON, array methods
ES20152015let/const, classes, modules, promises
ES20172017async/await
ES20202020?., ??, BigInt
ES20262026Error.isError, Uint8Array base64, Map getOrInsert

Was this tutorial helpful?

Lesson 118 of 139