Hapus backslash dari string

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

output: "hai how are you?"
Lokesh003