I formatted number with JavaScript toLocaleString('en') and now i want to revert the value without comma. Is there any function in JavaScript.
Example
var amount = parseInt(5000).toLocaleString('en');
console.log("amount:", amount);
result:
'5,000'
how to revert '5,000' into '5000' using JavaScript