JS: ECMAScript 2020
globalThis
a variable for the global object
Nullish Coalescing Operator
Optional Chaining Operator
String.prototype.matchAll
easier way to get all matches and all captures.
Order of Properties
big int
A new number primitive for working with arbitrary precision integers.
const x = 10n; console.log( typeof x === "bigint" ); // true
also new are typed array of big int:
BigInt64ArrayBigUint64Array
Dynamic import, the import() syntax
new syntax: import *
import * as xyz from "./xyz.js";
new syntax: export *
xtodoDedicated export * as ns from 'module' syntax for use within modules.
import.meta
xtodoimport.meta, a host- populated object available in Modules that may contain contextual information about the Module.
export {abc} from "./xyz.js"; export * from "./xyz.js";
Promise.allSettled
xtodoA new Promise combinator that does not short-circuit.
Order of for-in loop
Increased standardization of for-in enumeration order.
JavaScript. ECMAScript New Features
- JS: ECMAScript New Features. 2015 to 2026
- JS: ECMAScript 2015
- JS: ECMAScript 2016
- JS: ECMAScript 2017
- JS: ECMAScript 2018
- JS: ECMAScript 2019
- JS: ECMAScript 2020
- JS: ECMAScript 2021
- JS: ECMAScript 2022
- JS: ECMAScript 2023
- JS: ECMAScript 2024
- JS: ECMAScript 2025
- JS: ECMAScript 2026
- JS: ECMAScript 2027