I'm beginner in JavaScript and I'm rendering a list that contains some products.
The product price format comes as follows: 3800
, 4000
, 11000
, etc.
The way I should show the user is: 38.00
, 40.00
, 110.00
, etc.
But when I use Intl.NumberFormat
, the value is in the format: 3.800,00 €
, etc.
Can you tell me how to use Intl.NumberFormat
correctly to leave the values in the correct format?
Here's my code I put into codesandbox
Thank you in advance.