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, "");
const numbersArray = [1, 2, 3, 4, 5, 6, 7];
const numbersString = numbersArray.join(" ");
console.log(numbersString);
strip comma from string