Retire a barra de barragem da string

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

output: "hai how are you?"
Lokesh003