how to remove specific characters in string javascript code example
Example 1: javascript remove specific character from string
var newString = oldString.replaceAll("character/string goes here", "");
var oldString = "Hello World!";
var newString = oldString.replaceAll("o", "");
console.log(newString);
Example 2: javascript remove characters from beginning of string
"www.testwww.com".replace("www.", "");
"www.testwww.com".slice(4);
"www.testwww.com".replace(/^(www\.)/,"");
Example 3: javascript remove character from string
mystring.replace(/r/g, '')