replace all instances of word string stypscript code example Example: replace all javascript str.split(search).join(replacement);