var stringWithCommas = 'a,b,c,d';
var stringWithoutCommas = stringWithCommas.replace(/,/g, '');
console.log(stringWithoutCommas);
var purpose = "I, Just, want, a, quick, answer!";
// Removing the first occurrence of a comma
var result = purpose.replace(",", "");
// Removing all the commas
var result = purpose.replace(/,/g, "");
parseFloat('$148,326.00'.replace(/$|,/g, ''))
string.replace(/,s*$/, "");
/[,s]+|[,s]+/g
var str= "your string here";
//this will be new string after replace
str = str.replace(/[,s]+|[,s]+/g, 'your string here');
strip comma from string