Rating component with vanilla JS

Solution retrospective
For my JavaScript, is there a way to minimize the JavaScript by combining the numberContainer section with the numberBtns.forEach section? I made the numberContainer event listener with the purpose of getting the number for the number used in the text of the Thank You section, and the numberBtns section for making the active button have the active color state.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Ana's solution.
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