Replace String Function is used to replace the specified characters with new characters in the provided string. Javascript examples are provided in this tutorial to better understand the method.
The character "i" enables the JavaScript Replace string function to perform the case insensitive search in the given string and replaces the specified string pattern or character with new pattern. ...
learn how to replace all the occurrences of specified string with a new string using replace function’s extended parameter 'g'.