Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript rupiah currency format

const rupiah = (number) => {
	return new Intl.NumberFormat("id-ID", {
		style: "currency",
		currency: "IDR"
	}).format(number);
}
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #javascript #rupiah #currency #format
ADD COMMENT
Topic
Name
6+7 =