The replace() method returns a string where a part of the string replace with another string.
Example:
var str = "Hello Donald Tramp";
str.replace("Donald Tramp","Joe Biden");
console.log(str);
Output:
Hello Joe Biden
The replace() method returns a string where a part of the string replace with another string.
Example:
var str = "Hello Donald Tramp";
str.replace("Donald Tramp","Joe Biden");
console.log(str);
Output:
Hello Joe Biden