Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to replace all characters in a string javascript

const string = "a, b, c, d, e, f";
string.replace(/,/g, '');
console.log(string) //a b c d e f 
 
PREVIOUS NEXT
Tagged: #replace #characters #string #javascript
ADD COMMENT
Topic
Name
4+3 =