Answers for "how to remove commas from numbers in js"

4

remove commas from string javascript

var stringWithCommas = 'a,b,c,d';
var stringWithoutCommas = stringWithCommas.replace(/,/g, '');
console.log(stringWithoutCommas);
Posted by: Guest on May-17-2020
0

remove commas and dollar sign from string js

parseFloat('$148,326.00'.replace(/\$|,/g, ''))
Posted by: Guest on December-14-2020

Code answers related to "how to remove commas from numbers in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language