Programming with Prateek
#programming
#coding
#javascript
replace()
The replace() method searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced.
If you are replacing a value (and not a regular expression), only the first instance of the value will be replaced. To replace all occurrences of a specified value, use the global(g) modifier.
This method does not change the original string.
Support me guys
Subscribe
Road to 100 💯 Subscriber's