![]() This can be either a String or a regular expression. SyntaxĬonst newStr = str.replace( pattern, newValue) ![]() This means that a new string is created in memory for the return value of replace(). Home > Tutorials > JavaScript > How to Use the String.prototype replace Method in JavaScript JavaScript - How to Use the String.prototype replace Method in JavaScript The replace() method operates on a String, returning a new string with the specified changes.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |