Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string to currency javascript

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));
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #string #currency #javascript
ADD COMMENT
Topic
Name
2+9 =