replace each string by another string javascript code example
Example 1: str replace javascript all
str.replace(/abc/g, '');
Example 2: replace each string by another string javascript
str.split(search).join(replacement)
str.replace(/abc/g, '');
str.split(search).join(replacement)