Converting a number string to a number? [duplicate]

$ node
> parseInt('$1,000,000'.replace(/,|\$/g,''))
1000000

Leave a Comment