Submitted over 2 years ago
Interactive Rating Component using HTML, SASS, JS
@michaelshowes
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
- @sparrowslPosted over 2 years ago
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 helpful0 - @michaelshowesPosted over 2 years ago
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 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