remove all occurance of substring in js code example Example: replace all javascript str.split(search).join(replacement);