'Why is Intl.NumberFormat inconsistent?

running Intl.NumberFormat('en-IN',{ style: 'currency', currency: 'USD' }).format(5000) returns US$5,000.00 on one machine but just $5,000.00 on another machine. Why is that so?



Solution 1:[1]

I found out it was due to different node versions, but it doesn't make a lot of sense to me that upgrading node versions actually changes the output of a string formatting library, when the point of string formatting functions should be to expect consistent output.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Samson