Product List with Cart using HTML, CSS, and JS.
Design comparison
Solution retrospective
Enlightened with the fact that the elements created in a single iteration and having applied an event listener to an element in the same iteration allows for grouping making the work way easier and less complicated although it's hard to understand.
What challenges did you encounter, and how did you overcome them?Firstly, it was difficult to have event listeners working. Writing them outside of the creation loop seemed difficult and event delegations only worked until the first step. Later, finding out that attaching event listeners work inside the iterations, I was confused throughout the completion process.
Community feedback
- @ZedmcPosted 3 months ago
Great work, very impressed! One task you could work on would be that when the total quantity of a protect is reduced to 0, then it would be removed from the cart. Might be something you would want to check out. Great work honestly.
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord