Retire la barra de retroceso de la cadena

str = 'hai how are\ you?';
str = str.replace("\\", "");
console.log(str);

output: "hai how are you?"
Lokesh003