//replaces the first occurence only.
string.replace('characterToReplace', '');
or
// first parameter is regular expression and g is global prop, replaces all occurences.
string.replace('/regex/g','');
var newString = oldString.replaceAll("character/string goes here", "");
// Example
var oldString = "Hello World!";
var newString = oldString.replaceAll("o", "");
console.log(newString);
// Prints 'Hell Wrld!' to console.