str replace all accurance of a string javascript code example Example: replace all javascript str.split(search).join(replacement);