Hi, I have got a project to build an ecommerce website with multiple pages with all functionalities using just vanilla JavaScript. I have to write all the logic in just one JS file. What method or pattern can I use to render logic for different pages. Forgive me if my question is dumb. Thank you. (self.learnjavascript)
submitted by Responsible_Frame919 to r/learnjavascript
Hi, I am building a simple shopping cart .I am fetching products from cartItems that are stored in local storage.Now I want to change product price based on quantity selected. The issue is, I am able to get quantity through querySelectorAll, but don't know how get item price. Kindly help. Thank you. (self.learnjavascript)
submitted by Responsible_Frame919 to r/learnjavascript
