I have a website that has a list of products when a user clicks on 'Add to cart' he adds a product to the card (product is saved in a Local Storage). I want to display a list of projects added to the card from the Local storage on my page, but all I get is: [object Object] [object Object] [object Object]. How do I display the properties of these objects on my page? (I have a JSON file with the names, pictures, prices of the product, the data to display is coming from my JSON file)
Aucun commentaire:
Enregistrer un commentaire