how to remove commas from numbers in javasacript code example
Example 1: remove commas from string javascript
var stringWithCommas = 'a,b,c,d';
var stringWithoutCommas = stringWithCommas.replace(/,/g, '');
console.log(stringWithoutCommas);
Example 2: remove commas and dollar sign from string js
parseFloat('$148,326.00'.replace(/\$|,/g, ''))