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?
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?
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.