Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Interactive Rating Component using Html, CSS and Javascript

Anita uka 80

@neetauka

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Is there a way I can dynamically add the rating without having to hard code it?

Community feedback

@GiovanniEstrada

Posted

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

0

Anita uka 80

@neetauka

Posted

@GiovanniEstrada thank you so much. I will make changes right away

0

Please log in to post a comment

Log in with GitHub
Discord logo

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