ECMAScript 2021 (ES2021) is the 12th version of the ECMAScript language. It adds new features including Promise.any, String#replaceAll, weak references and finalizers. Only use this tag where the question specifically relates to new features or technical changes provided in ECMAScript 2021.
ECMAScript 2021 (ES2021) is the 12th version of the ecmascript language.
The following proposals have been merged:
Promise.any
- WeakRefs (weak references and finalizers)
String.prototype.replaceAll
- Logical Assignment Operators (
||=
,&&=
and??=
) - Numeric separators (
1_000_000
)