Interactive Rating Component using Html, CSS and Javascript
Design comparison
Solution retrospective
Is there a way I can dynamically add the rating without having to hard code it?
Community feedback
- @GiovanniEstradaPosted about 2 years ago
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 helpful0@neetaukaPosted about 2 years ago@GiovanniEstrada thank you so much. I will make changes right away
0
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