How to format the value in price to numbers with decimals? – Javascript
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…