replace()method returns a new string with some or all matches of a
patternreplaced by a
patterncan be a string or a
RegExp, and the
replacementcan be a string or a function to be called for each match. If
patternis a string, only the first occurrence will be replaced.
The original string is left unchanged.
MDN - "Replace" Reference