Tag: ES2021

Home » Posts Tagged "ES2021"
JS ES2021

New features in ES2021 JavaScript

Features of ES2021 replaceAll() Promise.any &&=, ||= and ??= Numeric separators   String replaceAll() Method JavaScript string has a replace() method. It can be used to replace a string with another string.

The replace() method only replaces the first occurrence. That is the reason the second occurrence of dog is not replaced. We can use a regular…

Read More