Answers for "how to change all of the same characters in a string javascript"

6

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
Posted by: Guest on March-24-2021

Code answers related to "how to change all of the same characters in a string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language