JavaScript has an Object type String that can be used to perform various types of string functions such as substring, upper case, lower case, font styles, index of characters etc.
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'.