Hi, clever attempt to this challenge. You may try to use form instead of bunch of buttons, and then handle submit event on it. It could make html a bit cleaner. You may check my solution if it helps: https://github.com/teempe/frontend-mentor-interactive-rating-component Keep up coding :)
Design comparison
Solution retrospective
That's my first project done all by myself using JS.
It was really hard to do the JS script because everything I did before, I was just copying a code from YT. I always try do read the code a few times so I can explain easily to someone.
If you have any suggestion how to improve my skill, feel free to comment!
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