Replace all occurrences of a string in JavaScript

Today we will show you how to replace all occurrences of a string in JavaScript. Here we show you the simplest way to replace all instances of string via a...