Interactive Rating Component using Html, CSS and Javascript

Solution retrospective
Is there a way I can dynamically add the rating without having to hard code it?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @GiovanniEstrada
Congratulations, your website looks great. actually your solution is very efficient, I just have one question: Why do you use two event listeners for the same element? I think the code can be written in the same event listener. In my case I would use the event listener like this:
submitHandler.addEventListener("click", () => { modalOverlay.classList.toggle("hidden"); mainContainer.classList.toggle("hidden"); });
Your code works and it's pretty good, only this part caught my attention.
Marked as helpful
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