JavaScript Strings
The replace() Method
replace() searches a string for a value, and returns a new string with the specified value(s) replaced:
Mr Blue has a blue house and a blue car.
replace() searches a string for a value, and returns a new string with the specified value(s) replaced:
Mr Blue has a blue house and a blue car.