JavaScript
What's
New In
2021
Replaces all occurrences of
a search value with a replacement
value. You can use Regular Expressions
for the search value.
Many other programming languages already support the public/private paradigm so seeing it roll into a clear definition within the ECMA standard is super nice!
It takes an iterable of Promise objects and returns a single promise that resolves as soon as ANY of the iterable promises resolve, if all promises are rejected returns AggregateError.
The logical assignment operators append the equals sign '=' to the comparison operator for a quick conditional assignment of your variables.
A new Error type to represent mutiple errors in a group
An object that holds a weak reference to another object without preventing garbage collection
A way to request a callback when an object is garbage collected.