How to replace all occurrences of a string in JavaScript?

How to replace all occurrences of a string in JavaScript?

More to explore