String.prototype.replace() - JavaScript | MDN - MDN Web Docs
https://developer.mozilla.org:443/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace
WEBSep 25, 2023 · The replace () method of String values returns a new string with one, some, or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function called for each match. If pattern is a string, only the first occurrence will be replaced.
DA: 87 PA: 76 MOZ Rank: 84