The javascript method replace - From Basic to Advanced - Episode 1

Опубликовано: 09 Ноябрь 2020
на канале: The Coding Odyssey
215
5

This video is the first video in a serios of videos I will be recording about the method replace in javascript going from basic to advanced.

The replace() method returns a new string with 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 to be called for each match. If pattern is a string, only the first occurrence will be replaced.

The original string is left unchanged.