Parameters: It accepts single parameter “String”.
Return value: It will return a new string.
> "geeksforgeeks --> GEEKSFORGEEKS" > "Article written by --> Shubham Singh"
> "Before: geeksforgeeks" > "After: GEEKSFORGEEKS" > "Before: Few Users" > "After: Millions of Users"
Supported Browsers: The browsers supported by Symbol.replace property are listed below:
- Google Chrome 51
- Firefox 50
- Edge 15
- Apple Safari