DEV Community

Discussion on: How to format a Number as Currency in JavaScript

Collapse
 
thorstenhirsch profile image
Thorsten Hirsch

Thanks for sharing. As you can see there's also a difference in where to put the currency sign (before or after the number). The Intl API is doing this correct, of course.

Collapse
 
saranshk profile image
saransh kataria

True, I just wrote an example for the sake of understanding, but you are right :)