replace() method
This method will allow you to provide the new replaced string from the old string.
Syntax-
and
Example-
Output-
Example-
Output-
This method will allow you to provide the new replaced string from the old string.
and
Example-