As suggested by others, you need to remove ( , ) from the string.
dollarString.split('$')[1].replace(/\,/g,'') * 100
In case dollarString only has values ββlike $xx,xxx,xxx$xx,xxx,xxx , you can just delete everything ( , ) and then split
dollarString.replace(/\,/g,'').split('$')[1] * 100
user2575725 Jan 28 '17 at 1:39 on 2017-01-28 01:39
source share