What's New in JavaScript
This lesson covers the newest JavaScript: everything added in ES2025 and ES2026, and the two big features already finished for ES2027 (Temporal and explicit resource management), which some engines ship today. Each feature has a short example and a link to the lesson that teaches it. Because support for new features changes month by month, every support statement here says when it was checked; this page is updated each July, after the new edition is approved.
In One Minute
- ES2025: iterator helpers, Set methods,
Promise.try,RegExp.escape,Float16Array, JSON modules and import attributes, regex modifiers. - ES2026:
Error.isError,Math.sumPrecise, Uint8Array base64 and hex,Array.fromAsync,Iterator.concat, JSON.parse source text, Map and WeakMapgetOrInsert. - Finished for ES2027: Temporal (dates and times) and
usingdeclarations. - As of November 2026, almost everything here runs in Node.js 26 and current Chrome; the exceptions are noted.
- New features reach Safari and Firefox at different times: check Baseline before relying on them in browsers.
ES2025
ES2025, the 16th edition, was approved in June 2025.
| Feature | Example | Lesson |
|---|---|---|
| Iterator helpers | iter.filter(f).map(g).take(3).toArray() | "Iterator Helpers" |
| Set methods | a.union(b), a.intersection(b), a.isSubsetOf(b) | "Set Methods" |
Promise.try | Promise.try(() => maybeAsync()) | "Promises" |
RegExp.escape | new RegExp(RegExp.escape(userText)) | "RegExp Methods" |
Float16Array, Math.f16round | Half-precision floats | "Typed Arrays and ArrayBuffer" |
| JSON modules and import attributes | import data from "./d.json" with { type: "json" } | "Dynamic Imports and Import Maps" |
| RegExp modifiers | /(?i:fee)s/ (case-insensitive part) | "Regular Expressions" |
| Duplicate named capture groups | The same group name in different alternatives | "Regex Groups and Assertions" |
const late = new Set(["Srihitha", "Advitha"]);
const unpaid = new Set(["Advitha", "Zoe"]);
console.log(late.intersection(unpaid), late.union(unpaid).size);
console.log([120, 30, 85, 450].values().filter((a) => a > 50).map((a) => `$${a}`).take(2).toArray());
console.log(RegExp.escape("$20 (late)"), /(?i:FEE)s/.test("fees"), /(?i:FEE)s/.test("feeS"));
console.log(await Promise.try(() => 42), Math.f16round(0.1));Set(1) {'Advitha'} 3
['$120', '$85']
\$20\x20\(late\) true false
42 0.0999755859375The regex modifier (?i:...) makes only the grouped part case-insensitive: "fees" matches, but in "feeS" the s outside the group must still be lowercase. Math.f16round shows how much precision half-precision floats lose.
ES2026
ES2026, the 17th edition, was approved by Ecma on June 30, 2026.
| Feature | Example | Lesson |
|---|---|---|
Error.isError | Reliable error detection | "Error Objects and Custom Errors" |
Math.sumPrecise | Sum without accumulating rounding errors | "Math and Random Numbers" |
| Uint8Array base64 and hex | bytes.toBase64(), Uint8Array.fromHex(s) | "Typed Arrays and ArrayBuffer" |
Array.fromAsync | await Array.fromAsync(asyncIterable) | "Iterator Helpers" |
Iterator.concat | Iterator.concat(a, b, c) | "Iterator Helpers" |
| JSON.parse source text access | (key, value, { source }) => BigInt(source) | "JSON" |
| Map and WeakMap upsert | map.getOrInsert(k, []), getOrInsertComputed(k, fn) | "Maps" |
console.log(Error.isError(new TypeError("x")), Error.isError({ message: "fake" }));
const bytes = new TextEncoder().encode("Fee");
console.log(bytes.toBase64(), bytes.toHex(), new TextDecoder().decode(Uint8Array.fromHex("466565")));
const byStudent = new Map();
for (const [name, amount] of [["Navika", 120], ["Advitha", 45], ["Navika", 60]]) {
byStudent.getOrInsert(name, []).push(amount);
}
console.log(byStudent);
console.log(Iterator.concat([1, 2], new Set([3])).toArray());
const exact = JSON.parse('{"id": 9007199254740993}', (k, v, ctx) => (k === "id" ? BigInt(ctx.source) : v));
console.log(String(exact.id));
console.log(await Array.fromAsync((async function* () { yield 1; yield 2; })()));true false
RmVl 466565 Fee
Map(2) {'Navika' => [120, 60], 'Advitha' => [45]}
[1, 2, 3]
9007199254740993
[1, 2]Math.sumPrecise: Not in Node.js 26 by Default
Math.sumPrecise is part of ES2026, but Node.js 26 doesn't enable it by default (as of November 2026, it requires the V8 flag --js-sum-precise). It runs in current Chrome (output captured in Chromium 158):
console.log([0.1, 0.2, 0.3].reduce((a, b) => a + b, 0));
console.log(Math.sumPrecise([0.1, 0.2, 0.3]));0.6000000000000001
0.6console.log("Math.sumPrecise available here:", typeof Math.sumPrecise === "function");Math.sumPrecise available here: falseThis is a good example of why edition years and real support must be checked separately.
Finished for ES2027
Two major features reached stage 4 in 2026 and are expected in the 2027 edition. Several engines already ship them.
Temporal
Temporal (stage 4 since March 2026) is the modern date and time API, replacing Date: immutable values, separate types for dates, times and zones, human month numbers, and correct arithmetic. See "Temporal", "Temporal Types" and "Temporal Arithmetic and Formatting".
const due = Temporal.PlainDate.from("2026-01-31").add({ months: 1 });
const meeting = Temporal.ZonedDateTime.from("2026-03-07T09:00[America/Chicago]").add({ days: 1 });
console.log(due.toString(), meeting.toString());2026-02-28 2026-03-08T09:00:00-05:00[America/Chicago]Explicit Resource Management (using)
using and await using declarations dispose resources (files, connections, locks) automatically when a block ends, through [Symbol.dispose]() and [Symbol.asyncDispose](), with DisposableStack for groups. See "Memory, Cleanup and Garbage Collection".
{
using lock = { [Symbol.dispose]() { console.log("lock released"); } };
console.log("working with the lock");
}working with the lock
lock releasedSupport Summary (Checked November 2026)
| Feature | Edition | Node.js 26 | Chrome | Safari 27.2 (stable) |
|---|---|---|---|---|
Iterator helpers, Set methods, Promise.try, RegExp.escape | ES2025 | Yes | Yes | Yes |
Error.isError, Uint8Array base64/hex, getOrInsert, Iterator.concat | ES2026 | Yes | Yes | Check Baseline |
Math.sumPrecise | ES2026 | Behind a flag | Yes | Check Baseline |
| Temporal | Expected ES2027 | Yes | Yes (144+) | No (coming in 27.3, in beta) |
using / await using | Expected ES2027 | Yes | Yes | Check Baseline |
Node.js and Chrome results come from running the examples (Node.js 26.13.1 and Chromium 158). Temporal browser support comes from MDN compatibility data (updated November 11, 2026). For the rows marked "Check Baseline", look up the feature on MDN before relying on it in Safari or Firefox.
Where to Follow What's Next
| Source | What you'll find |
|---|---|
| The TC39 proposals repository on GitHub | Every proposal and its current stage |
| MDN Web Docs | Documentation and compatibility tables, Baseline status |
| Browser release notes (Chrome, Firefox, Safari) | What ships in each version |
| Node.js release notes | V8 updates and new features per version |
Proposals at stage 3 are the ones to watch: they're ready for engines to implement and likely to appear in an edition within a year or two.
In Practice
A Fee Tracker utility module written with the newest features, each with a fallback where support isn't universal yet:
const sum = (values) =>
typeof Math.sumPrecise === "function" ? Math.sumPrecise(values) : values.reduce((a, b) => a + b, 0);
function groupPayments(payments) {
const groups = new Map();
for (const p of payments) groups.getOrInsert(p.name, []).push(p.amount);
return groups;
}
function receiptId(bytes) {
return bytes.toHex().slice(0, 12);
}
const payments = [{ name: "Navika", amount: 120.1 }, { name: "Advitha", amount: 45.2 }, { name: "Navika", amount: 60.3 }];
for (const [name, amounts] of groupPayments(payments)) {
console.log(name, sum(amounts).toFixed(2));
}
console.log(receiptId(new TextEncoder().encode("Navika-2026-01-05")));
console.log(Error.isError(new RangeError("x")) ? "errors detected reliably" : "fallback");Navika 180.40
Advitha 45.20
4e6176696b61
errors detected reliablyCommon Mistakes
Using a new API without checking support for your audience. Feature-detect or polyfill.
Assuming a feature is in an edition because an engine ships it. Temporal works in Node.js 26 but belongs to ES2027.
Relying on old articles for support information. Support changes quickly; check current data.
Feature-detecting new syntax at run time. using can't be detected in the same file; it fails to parse. Use build targets.
Practice
Challenge: Write supportReport() that returns an object mapping five new features to true or false in the current runtime: Iterator.concat, Error.isError, Math.sumPrecise, Temporal, and Map.prototype.getOrInsert.
Show solution
function supportReport() {
return {
iteratorConcat: typeof Iterator?.concat === "function",
errorIsError: typeof Error.isError === "function",
mathSumPrecise: typeof Math.sumPrecise === "function",
temporal: typeof globalThis.Temporal === "object",
mapGetOrInsert: typeof Map.prototype.getOrInsert === "function",
};
}
console.log(supportReport());{ iteratorConcat: true, errorIsError: true, mathSumPrecise: false, temporal: true, mapGetOrInsert: true }Key Takeaways
| Feature | Status (November 2026) |
|---|---|
| ES2025 features | Widely supported |
| ES2026 features | Node.js 26 and Chrome (except Math.sumPrecise in Node.js) |
| Temporal | Node.js 26, Chrome, Firefox; Safari 27.3 coming |
using | Node.js 26, Chrome |
Was this tutorial helpful?