const money = 10000; const currency = function(number){ return new Intl.NumberFormat('en-IN', {style: 'currency',currency: 'INR', minimumFractionDigits: 2}).format(number); }; console.log(currency(money));