An ever-smiling full-stack developer, specializing in the rapid development of custom web applications. Always eager to learn new technologies and concepts and share knowledge.
Because replaceAll is bit new. As of August 2020, greenfield browsers have support for the String.replaceAll() method defined by the ECMAScript 2021 language specification. For older/legacy browser we need to either use the regex or split-join (or can use shim/polyfil or babel parser)
Also node v15 supports replaceall but in older versions we can't use it
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Because replaceAll is bit new. As of August 2020, greenfield browsers have support for the String.replaceAll() method defined by the ECMAScript 2021 language specification. For older/legacy browser we need to either use the regex or split-join (or can use shim/polyfil or babel parser)
Also node v15 supports replaceall but in older versions we can't use it