Product List with Cart using HTML, CSS, and JS.

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.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Chimi Rinzin's solution.
Join 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