this is the code
<div className="flex-box d-flex justify-content-between align-items-center">
<h6>Price</h6>
<span>
$ {product.price.toLocaleString('en-US', {maximumFractionDigits: 2,})}
</span>
</div>
it shows no error
but when I look at it, it shows this
how do I solve this? I just want to price to be like $ 1,399.99
use Intl.NumberFormat for number formating
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat