Not Found
Not Found
Not Found
Not Found
Request failed with status code 502
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

@mcstarley1215

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


What did you find difficult while building the project? Still having hard time on DOM manipulations and Javascript as whole.

Which areas of your code are you unsure of? Javascript and the way I code the design.

Do you have any questions about best practices? Any tips to master javascript and shortening the design code.

Community feedback

Dan 820

@Gitit2meBaby

Posted

Yo! Nice work on the design.. In the Javascript your on the right track, but you need to remove the .selected class from all the other buttons when one is clicked on. I'm also a beginner, and in struggleTown, but for what its worth.. I chose to create a function that removed any case of the 'selected' class each time a button was clicked on, i called this function in the buttons eventListener's forEach button every time. cheers! Dan

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