JavaScript | Replace multiple strings with multiple other strings. replace() method. This method searches a string for a defined value, or a regular expression, and returns a new string with the replaced defined value. Syntax: JavaScript Array join() Method. This method adds the elements of an array into a string, and ...