Converting a number string to a number? [duplicate]

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

Browse More Popular Posts

Leave a Comment