JavaScript History and Versions
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
| Year | Milestone |
|---|---|
| 1995 | Brendan Eich creates the language at Netscape in about ten days; it ships in Netscape Navigator 2 as LiveScript, renamed JavaScript |
| 1996 | Microsoft ships a compatible language, JScript, in Internet Explorer 3 |
| 1997 | ECMAScript 1, the first standard, published by Ecma International |
| 1999 | ES3: regular expressions, try...catch, better string handling; the baseline for a decade |
| 2008 | ES4, a very ambitious redesign, is abandoned |
| 2009 | ES5: strict mode, JSON, Array.prototype.forEach/map/filter/reduce, Object.keys, getters and setters |
| 2009 | Node.js brings JavaScript to servers |
| 2015 | ES2015 (ES6): let/const, arrow functions, classes, modules, promises, template literals, Map/Set and more |
| 2016 onward | One edition every year, each with a few features |
| 2026 | ES2026, 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:
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}`);var payments = [{ name: "Navika", amount: 120 }, { name: "Advitha", amount: 45 }];
var total = payments.reduce(function (sum, p) { return sum + p.amount; }, 0);
var names = payments.map(function (p) { return p.name; }).join(", ");
console.log(names + ": $" + total);var payments = [{ name: "Navika", amount: 120 }, { name: "Advitha", amount: 45 }];
var total = 0, names = [];
for (var i = 0; i < payments.length; i++) {
total += payments[i].amount;
names.push(payments[i].name);
}
console.log(names.join(", ") + ": $" + total);Navika, Advitha: $165| You see | It's from | Modern equivalent |
|---|---|---|
var, function everywhere, string + joining | ES3/ES5 | const/let, arrows, template literals |
for (var i = 0; ...) over arrays | ES3 | for...of, array methods |
IIFEs (function () { ... })() | ES3/ES5 | Modules, block scope |
"use strict"; at the top of files | ES5 | Modules are strict automatically |
Constructor.prototype.method = function | ES3/ES5 | class |
| Callbacks for async work | Pre-2015 | Promises, async/await |
require() / module.exports | Node.js CommonJS | ES 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:
| Stage | Meaning |
|---|---|
| 0 | An idea, not yet considered by the committee |
| 1 | The committee agrees the problem is worth working on |
| 2 | A draft design is chosen |
| 2.7 | The design is approved; tests are being written |
| 3 | Ready for engines to implement and ship |
| 4 | Finished: 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 quirk | Why it stays |
|---|---|
typeof null === "object" | A 1995 bug that pages rely on |
== type coercion | Changing it would break existing comparisons |
var hoisting, sloppy mode | Old scripts depend on them |
Array.prototype.flatten was renamed flat | An 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?
| Question | Where 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 versions | MDN compatibility tables, caniuse.com |
| Node.js support | node.green, the Node.js release notes |
| My project's browsers | A Browserslist query in your build tools |
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);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
| Engine | Used by |
|---|---|
| V8 | Chrome, Edge, Opera, Node.js, Deno |
| SpiderMonkey | Firefox |
| JavaScriptCore | Safari, 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:
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.
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
const students = [{ name: "Srihitha", grade: 11 }, { name: "Navika", grade: 9 }];
const labels = students.map(({ name, grade }) => `${name} (grade ${grade})`);
console.log(labels.join("; "));Srihitha (grade 11); Navika (grade 9)Key Takeaways
| Edition | Year | Known for |
|---|---|---|
| ES3 | 1999 | Regular expressions, try...catch |
| ES5 | 2009 | Strict mode, JSON, array methods |
| ES2015 | 2015 | let/const, classes, modules, promises |
| ES2017 | 2017 | async/await |
| ES2020 | 2020 | ?., ??, BigInt |
| ES2026 | 2026 | Error.isError, Uint8Array base64, Map getOrInsert |
Was this tutorial helpful?