different ways to replaceAll code example
Example 1: js replace all substrings
/// replace "abc" with "" (blank string)
str.replace(/abc/g, '');
Example 2: replace each string by another string javascript
str.split(search).join(replacement)
/// replace "abc" with "" (blank string)
str.replace(/abc/g, '');
str.split(search).join(replacement)