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, SASS, JS

P

@michaelshowes

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


Still getting comfortable with Javascript. Please check and let me know if there were simpler or cleaner approaches to some of my code. I'm a very "if it works, it works" kind of person, and it can bite me in the ass lol.

Community feedback

@sparrowsl

Posted

Cool code, I love how you tackle the javascript part ;)

Few suggestions:

  • the radio button between each other spacing is too much (as per design)
  • try removing the ...onclick="submitRating()"... from the HTML (use javascript to get the button and add an event listener)
  • start practicing how to use the DOM

Nice code,

Marked as helpful

0
P

@michaelshowes

Posted

Thanks a lot for the feedback. I'll definitely keep it all in mind!

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