How to replace all occurrences of a string in JavaScript How to replace all occurrences of a string in JavaScript javascript javascript