replace() and replaceAll()
replace
replace() is super versatile. It takes two parameters: the pattern you're looking for and the replacement for it. It'll then return a new string with the changes in place.
The pattern can be expressed as a string or as a regular expression. T...
raissa.hashnode.dev7 min read