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. const txt = “The quick brown fox jumps over the lazy dog. If the dog reacted, was it really lazy?”; const newTxt = txt.replace(‘dog’, ‘monkey’); console.log(newTxt);…