Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace backward slash in javascript

const data = { "id": "23232", "pass": "1434" };
console.log(data);
const b = JSON.stringify(data);
str = b.replace(//g, '');
console.log(str);
 
PREVIOUS NEXT
Tagged: #replace #slash #javascript
ADD COMMENT
Topic
Name
9+6 =