Submitted about 2 years ago
Interactive rating with HTML, CCS & JS using Flexbox & Mobile-first
@ElenaPalomar
Design comparison
SolutionDesign
Solution retrospective
Hello! This is my third challenge and the first one where I use JS, so I wanted to ask:
- How would you make the JS code cleaner or shorter?
- Is it better to use
onclick
in the HTML, in the JS or is it okay to do it with theaddEventLiester
method? I would like your opinion on these two aspects in particular, but any advice is more than welcome.
Community feedback
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