What's New in JavaScript

Updated · 7 min read
mediumES2026javascriptes2025es2026temporalnew-features

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 WeakMap getOrInsert.
  • Finished for ES2027: Temporal (dates and times) and using declarations.
  • 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.

FeatureExampleLesson
Iterator helpersiter.filter(f).map(g).take(3).toArray()"Iterator Helpers"
Set methodsa.union(b), a.intersection(b), a.isSubsetOf(b)"Set Methods"
Promise.tryPromise.try(() => maybeAsync())"Promises"
RegExp.escapenew RegExp(RegExp.escape(userText))"RegExp Methods"
Float16Array, Math.f16roundHalf-precision floats"Typed Arrays and ArrayBuffer"
JSON modules and import attributesimport 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 groupsThe same group name in different alternatives"Regex Groups and Assertions"
es2025.js▶ Try it
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));
Output
Set(1) {'Advitha'} 3
['$120', '$85']
\$20\x20\(late\) true false
42 0.0999755859375

The 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.

FeatureExampleLesson
Error.isErrorReliable error detection"Error Objects and Custom Errors"
Math.sumPreciseSum without accumulating rounding errors"Math and Random Numbers"
Uint8Array base64 and hexbytes.toBase64(), Uint8Array.fromHex(s)"Typed Arrays and ArrayBuffer"
Array.fromAsyncawait Array.fromAsync(asyncIterable)"Iterator Helpers"
Iterator.concatIterator.concat(a, b, c)"Iterator Helpers"
JSON.parse source text access(key, value, { source }) => BigInt(source)"JSON"
Map and WeakMap upsertmap.getOrInsert(k, []), getOrInsertComputed(k, fn)"Maps"
es2026.js▶ Try it
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; })()));
Output
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):

sum-precise.js
console.log([0.1, 0.2, 0.3].reduce((a, b) => a + b, 0));
console.log(Math.sumPrecise([0.1, 0.2, 0.3]));
Output
0.6000000000000001
0.6
sum-precise-check.js▶ Try it
console.log("Math.sumPrecise available here:", typeof Math.sumPrecise === "function");
Output
Math.sumPrecise available here: false

This 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".

temporal.js▶ Try it
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());
Output
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.js▶ Try it
{
  using lock = { [Symbol.dispose]() { console.log("lock released"); } };
  console.log("working with the lock");
}
Output
working with the lock
lock released

Support Summary (Checked November 2026)

FeatureEditionNode.js 26ChromeSafari 27.2 (stable)
Iterator helpers, Set methods, Promise.try, RegExp.escapeES2025YesYesYes
Error.isError, Uint8Array base64/hex, getOrInsert, Iterator.concatES2026YesYesCheck Baseline
Math.sumPreciseES2026Behind a flagYesCheck Baseline
TemporalExpected ES2027YesYes (144+)No (coming in 27.3, in beta)
using / await usingExpected ES2027YesYesCheck 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

SourceWhat you'll find
The TC39 proposals repository on GitHubEvery proposal and its current stage
MDN Web DocsDocumentation and compatibility tables, Baseline status
Browser release notes (Chrome, Firefox, Safari)What ships in each version
Node.js release notesV8 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:

modern-utils.js▶ Try it
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");
Output
Navika 180.40
Advitha 45.20
4e6176696b61
errors detected reliably

Common 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
support-report.js▶ Try it
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());
Output
{ iteratorConcat: true, errorIsError: true, mathSumPrecise: false, temporal: true, mapGetOrInsert: true }

Quick check: What's new

3 questions
1Which edition added iterator helpers and Set methods?
2Which ES2026 feature does Node.js 26 not enable by default?
3Temporal is expected in which edition?

Key Takeaways

FeatureStatus (November 2026)
ES2025 featuresWidely supported
ES2026 featuresNode.js 26 and Chrome (except Math.sumPrecise in Node.js)
TemporalNode.js 26, Chrome, Firefox; Safari 27.3 coming
usingNode.js 26, Chrome

Was this tutorial helpful?

Lesson 121 of 139