## Replace method in JS
You can search and replace text in a string using .replace() on a string.
Unlike .test(), .replace() is chained to a string value.
The parameters for .replace() are:
1. the regex pattern you want to search for.
2. the string to replace the match or a **function** to do something.