In Javascript RegExp function can be used to match and replace the special characters or text from the specified string. Combination of replace String function and RegExp function of Javascript ...
learn how to replace all the occurrences of specified string with a new string using replace function’s extended parameter 'g'.