What Is JavaScript? ECMAScript, TC39, Versions and Host Environments
What JavaScript really is: the language vs the ECMAScript standard, how TC39 adds features stage by stage, every edition from ES5 to ES2026 (and what ES2027 brings), strict mode, engines like V8, and why browsers and Node.js give the same language different powers.
kvi5hnuCode Sprout team member12 min readOn this page
JavaScript started as a small scripting language for making web pages react to clicks. Today it runs in every web browser, on servers, in phone apps, in desktop programs such as VS Code and Slack, in databases and on tiny edge servers spread around the world. If you write software for the web in any role, you will read and write JavaScript.
This article gives you the map before we walk the territory. By the end you will know:
- what people mean by "JavaScript" and "ECMAScript", and why there are two names,
- how a new feature makes its way into the language, and how to tell whether you can use it,
- which edition added which feature, from ES5 to ES2026,
- what strict mode is and why most modern code gets it for free,
- why the same language can read files in Node.js but not in a browser.
The language in one paragraph
JavaScript is a high-level, dynamic, garbage-collected language. High-level means you never manage memory addresses yourself. Dynamic means variables have no fixed type: the same variable can hold a number now and a string later, and objects can gain or lose properties while the program runs. It is multi-paradigm: you can write imperative loops, object-oriented classes or functional pipelines of small functions, and real code mixes all three. Its syntax looks like C and Java (curly braces, if, for, while), but underneath it works very differently from Java: functions are ordinary values you can store and pass around, and objects inherit directly from other objects through prototypes rather than from classes.
Two names: JavaScript and ECMAScript
Brendan Eich wrote the first version at Netscape in 1995, famously in about ten days. It was called Mocha, then LiveScript, and finally JavaScript when it shipped in Netscape Navigator 2. Microsoft soon shipped a compatible implementation called JScript, and to keep the two from drifting apart, Netscape handed the language to Ecma International, a standards body in Geneva. The standard couldn't be called "JavaScript", because that name is a trademark (owned by Sun then, and by Oracle since it bought Sun in 2010), so it was published as ECMAScript.
In practice:
- ECMAScript (ES) is the specification, a document called ECMA-262 that defines the syntax and behavior precisely. People use it when they talk about versions: "ES2015", "ES2022".
- JavaScript is what everyone calls the language in daily life, and what browsers and runtimes implement.
A second standard, ECMA-402, defines the Intl internationalization API (formatting numbers, dates and lists for different languages). Browsers and Node implement both.
How features get into the language: TC39
The committee that maintains ECMAScript is TC39 (Technical Committee 39 of Ecma). Its members are browser makers, companies that rely heavily on JavaScript, and invited experts, and it meets about every two months. Every new feature is a proposal that climbs through numbered stages:

| Stage | Meaning | Should you use it? |
|---|---|---|
| 0 | An idea someone wants to discuss | No |
| 1 | The committee agrees the problem is worth solving; a "champion" leads the work | No: the design is open |
| 2 | A preferred design with draft specification text | Only to experiment; it can still change a lot |
| 2.7 | The design is complete and approved in principle; conformance tests (Test262) are being written | Not yet |
| 3 | Recommended for implementation; engines ship it, sometimes behind a flag at first | Yes, once the engines you target ship it |
| 4 | Finished: at least two engines ship it, and it goes into the next yearly edition | Yes |
Stage 2.7 was added in 2024 so that tests are written before engines start implementing, which catches design problems earlier.
Each June, Ecma publishes a new edition containing every proposal that reached stage 4 in time. ECMAScript 2026, the 17th edition, was approved on 30 June 2026.
A short history of the editions

| Edition | Year | Highlights you'll meet in this course |
|---|---|---|
| ES3 | 1999 | regular expressions, try/catch; the baseline of the early web |
| ES4 | (2008) | an ambitious redesign that was abandoned; never released |
| ES5 | 2009 | strict mode, JSON, array methods such as forEach, map and filter, getters and setters |
| ES2015 (ES6) | 2015 | let/const, arrow functions, classes, modules, promises, iterators and generators, destructuring, template literals, Map/Set, Symbol, Proxy |
| ES2016 | 2016 | ** exponent operator, Array.prototype.includes |
| ES2017 | 2017 | async/await, Object.entries/values, padStart/padEnd |
| ES2018 | 2018 | for await, rest/spread for object properties, Promise.prototype.finally, regex named groups and lookbehind |
| ES2019 | 2019 | flat/flatMap, Object.fromEntries, trimStart/trimEnd, optional catch binding |
| ES2020 | 2020 | ?. optional chaining, ?? nullish coalescing, BigInt, globalThis, dynamic import(), Promise.allSettled, matchAll |
| ES2021 | 2021 | replaceAll, Promise.any, &&= ||= ??=, numeric separators 1_000_000, WeakRef |
| ES2022 | 2022 | public and #private class fields, static blocks, top-level await, .at(), Object.hasOwn, error cause |
| ES2023 | 2023 | findLast, change-by-copy methods toSorted/toReversed/toSpliced/with, #! hashbang lines |
| ES2024 | 2024 | Object.groupBy/Map.groupBy, Promise.withResolvers, the regex v flag, resizable ArrayBuffers |
| ES2025 | 2025 | iterator helpers (.map, .filter on iterators), new Set methods (union, intersection...), JSON modules with import attributes, RegExp.escape, Promise.try, Float16Array |
| ES2026 | 2026 | Map/WeakMap getOrInsert, Error.isError, Math.sumPrecise, Uint8Array Base64/hex, Iterator.concat, Array.fromAsync, JSON.parse source text access |
Already at stage 4 and expected in ES2027: the Temporal date and time API (finally replacing the troublesome Date), using/await using declarations for automatic cleanup (explicit resource management), more iterator helpers (Iterator.zip, chunks, windows, includes, join) and Atomics.pause. Several of them already ship: Node.js 26, for example, has Temporal turned on by default.
Proposals worth watching, which are not part of the language yet: import defer and source phase imports (Stage 3, finer control over loading modules), decorators (Stage 2.7, though TypeScript and Babel already compile them, article 73), ShadowRealm (Stage 2.7, isolated global environments), Math.clamp (Stage 2), and early-stage ideas such as pattern matching and signals. Records and Tuples was withdrawn in 2025. Stages change, so check the TC39 proposals list before relying on any of these.
You don't need to memorize this table. It's here so that when you read "this needs ES2022" in documentation, or see an older codebase full of var, you know where it fits. "ES6" is still common shorthand for "modern JavaScript", because 2015 was the edition that changed the most.
Strict mode: the fix for early mistakes
JavaScript must stay backward compatible: a web page written in 1998 should still work in today's browser. So the language can't simply remove its early design mistakes. ES5 introduced a way around this. Code can opt in to strict mode, a slightly different language in which several mistakes become errors:
- Assigning to an undeclared variable throws a
ReferenceErrorinstead of silently creating a global variable. - Assigning to a read-only property throws instead of being ignored.
thisisundefined(not the global object) in a plain function call.- Old features such as the
withstatement and octal literals like010are not allowed.
You opt in by putting the directive "use strict"; at the top of a script or function. But in modern code you rarely write it, because class bodies and ES modules are always strict. Most code written today is strict without saying so. The statements part (part 5) lists every difference in detail.
function sloppyCounter() {
totl = 1; // typo: there is no variable named totl
return "sloppy mode created a global: totl = " + globalThis.totl;
}
function strictCounter() {
"use strict";
try {
totl2 = 1; // the same typo, in strict mode
} catch (err) {
return "strict mode threw " + err.name + ": " + err.message;
}
}
console.log(sloppyCounter());
console.log(strictCounter());
sloppy mode created a global: totl = 1
strict mode threw ReferenceError: totl2 is not defined
In sloppy mode, the typo quietly created a global variable, a classic source of bugs that are hard to track down. Strict mode turned the same mistake into an immediate error with a clear message.
Engines and host environments
To run JavaScript you need an engine, the program that parses your code and executes it. The big three are:
- V8, made by Google: used in Chrome, Edge, Opera, Node.js and Deno.
- SpiderMonkey, made by Mozilla: used in Firefox.
- JavaScriptCore, made by Apple: used in Safari (and, on iOS, by nearly every other browser too) and in the Bun runtime.
Modern engines don't just interpret your code line by line. They start by interpreting it quickly, watch which functions run often, and compile those "hot" functions to optimized machine code while the program runs (just-in-time, or JIT, compilation). That's why the old label "interpreted language" undersells how fast JavaScript is today.
The engine alone can't do much. The ECMAScript standard deliberately defines no input or output: no files, no network, no screen, not even console.log (that comes from the host). Everything that touches the outside world is supplied by the host environment that embeds the engine:

- A web browser adds the DOM (the page's elements), events,
fetch, storage,<canvas>graphics, workers and hundreds of other web APIs. - Node.js (2009) adds files, processes, environment variables, network servers and child processes. Deno and Bun are newer runtimes in the same space, and both can run most Node code.
So when someone asks "can JavaScript read a file?", the precise answer is "the language can't, but the Node host can, and a browser host only lets the user pick one". This course teaches the core language first (parts 1 to 14), then the browser host (part 15) and the Node host (part 16).
Your program can find out where it's running:
const inBrowser = typeof window !== "undefined" && typeof document !== "undefined";
const inNode = typeof process !== "undefined" && process.versions?.node !== undefined;
console.log("globalThis exists:", typeof globalThis === "object");
console.log("browser host:", inBrowser);
console.log("Node.js host:", inNode);
console.log("console comes from the host, not the language:", typeof console.log);
globalThis exists: true
browser host: false
Node.js host: true
console comes from the host, not the language: function
globalThis (ES2020) is the standard name for the global object in every host. Before it existed, you had to write window in browsers, self in workers and global in Node.
Common questions
Is JavaScript compiled or interpreted?
Both, in practice. You ship source code, not a compiled binary, so the engine must parse it at run time. But modern engines compile it to bytecode immediately and then compile hot code to optimized machine code while the program runs (JIT compilation). The term "interpreted" describes how you distribute the code, not how slowly it runs.
Is TypeScript a different language?
TypeScript is a superset of JavaScript made by Microsoft: JavaScript plus type annotations that a checker verifies before the code runs. The types are erased when TypeScript is turned into JavaScript (and recent Node versions can run .ts files directly by stripping the types). Everything you learn in this course applies to TypeScript. Part 17 introduces type checking.
What do "ES6" and "ES2015" mean, and why both?
They're the same edition. The sixth edition was published in 2015, and from then on editions were named by year. "ES6" survives as a nickname, often meaning "modern JavaScript" in general.
What is "vanilla JavaScript"?
Plain JavaScript with no framework or library. React, Vue, Angular and Svelte are libraries and frameworks written in JavaScript. Learning the language itself first makes all of them easier.
Do I need to learn old features like var if modern code uses let?
You need to recognize them. Lots of existing code, libraries and interview questions use var, function-style classes and callbacks. This course teaches the modern way first and explains the old way wherever you're likely to meet it.
What is WebAssembly, and will it replace JavaScript?
WebAssembly (Wasm) is a compact binary format that browsers and runtimes can execute at near-native speed. It's a compilation target for languages like C, C++ and Rust, used for heavy computation such as video editing or games. It works alongside JavaScript, which still drives the page and calls into Wasm modules. It isn't replacing JavaScript.
Summary
- JavaScript is a high-level, dynamic, multi-paradigm language with first-class functions and prototype-based objects. It is unrelated to Java.
- ECMAScript is the standard (ECMA-262); TC39 evolves it through stages 0 to 4 (with 2.7 in between), and a new edition appears every June. ES2026 is the newest; Temporal and
usingare expected in ES2027. - Strict mode fixes early mistakes. Classes and modules are always strict.
- An engine (V8, SpiderMonkey, JavaScriptCore) runs the code; a host (browser, Node.js, Deno, Bun) supplies all input and output.
Practice Questions
A colleague says "this feature is Stage 3, so it's part of ES2026". Is that right?
Answer
No. Stage 3 means the design is done and engines are encouraged to implement it. A feature joins an edition only after it reaches stage 4, which requires two shipping implementations. A stage 3 feature may be usable today if the engines you target already ship it.
Why couldn't TC39 simply make assignments to undeclared variables throw in all code?
Answer
Backward compatibility. Millions of existing pages rely, often by accident, on that sloppy behavior, and changing it would break them. Strict mode lets new code opt in to the safer rules while old code keeps working.
Your function never writes "use strict", but it throws a ReferenceError for an undeclared assignment. How is that possible?
Answer
The function is in strict code anyway: it's inside a class body or an ES module (a file loaded with import, a <script type="module">, or an .mjs file), all of which are strict automatically.
Which of these come from the ECMAScript standard and which from the host: Array.prototype.map, setTimeout, JSON.parse, fetch, document.querySelector?
Answer
From ECMAScript: Array.prototype.map and JSON.parse. From the host: setTimeout, fetch and document.querySelector. setTimeout and fetch exist in both browsers and Node, which makes them easy to mistake for language features. document exists only in browsers.
What does ES2015 have to do with the class keyword?
Answer
ES2015 introduced class syntax. It's mostly a cleaner way to write the prototype-based patterns that existed before, plus a few things that weren't possible before, such as subclassing built-ins like Array. Part 9 explains what happens under the hood.
Next: Running JavaScript: Browser DevTools Console, Node.js REPL and Script Files

More in JavaScript Course
Quiz: Modern JavaScript, ES2022 to ES2027 Features
Twenty-four questions on what's new in JavaScript: change-array-by-copy methods, groupBy, Set methods, iterator helpers, Promise.withResolvers and Promise.try, RegExp.escape and the v flag, using declarations, Error.isError, Base64 typed arrays, Temporal, getOrInsert and Iterator.zip.
Quiz: JavaScript's Delicate Details (Spec-Level Edge Cases)
Twenty-eight questions on the fine print of JavaScript, drawn from the ECMAScript specification and MDN: sparse arrays, -0, number limits, JSON edge cases, Date overflow, UTF-16, property attributes, inherited accessors, comparison quirks, labels, regex state and Symbol.toPrimitive.
Quiz: JavaScript Interview Questions (Output Prediction and Core Concepts)
Thirty classic JavaScript interview questions: closures in loops, hoisting and the TDZ, this, the event loop and microtasks, async/await, coercion, sorting and parseInt traps, prototypes, copying, finally, generators and bind. Every answer was verified by running it.
Quiz: JavaScript Course Final Exam (All 17 Parts)
The final exam for the JavaScript course: thirty questions spanning all seventeen parts, from syntax, types and operators through objects, arrays, functions, classes, modules, the standard library, iterators, async code, metaprogramming, browsers, Node.js and tooling.
Discussion
Sign in to ask a question or share what you learned.