120
JavaScript Symbol.replace Property
The JavaScript Symbol.replace symbol determine the method that replaces the matched substring of a string.
Syntax
Parameters
String.
Return value
A new string.
Browser Support
Chrome | 32 |
Safari | 8 |
Firefox | 29 |
Opera | 19 |
Example 1
Output:
Before: java After: TutorAspire
Example 2
Output:
Before: TutorAspire After: TutorAspire
Next TopicJavaScript Symbol