replace fixed set of characters in string javascript code example
Example 1: str replace javascript all
str.replace(/abc/g, '');
Example 2: javascript string change character at index
String.prototype.replaceAt=function(index, char) {
var a = this.split("");
a[index] = char;
return a.join("");
}