how to remove slash from string in javascript code example
Example: how to remove backslash from string in javascript
string.replace(/\\\//g, "/");
// this is also
let new_arr = arr.replace(/\\/g, "");
string.replace(/\\\//g, "/");
// this is also
let new_arr = arr.replace(/\\/g, "");