javascript to number format code example
Example 1: javascript int values
var min = parseInt("2");
var max = parseInt("3");
Example 2: js format urcurency
// Create our number formatter.
var formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
});
formatter.format(2500); /* $2,500.00 */