replace each string by another string javascript

JavaScript
str.replace(/abc/g, '');str.split(search).join(replacement)

Source

Also in JavaScript: