
Design comparison
SolutionDesign
Solution retrospective
Hi, I would like to receive feedback on the JS part of my code.
to create the <small> tag of the pop-up window after submitting a rating, I needed the number of the rating to make it dynamic. So, I created an object, separated each index, and called them later, which worked. However, I would like to know if there is any simpler way to take the innerHTML of the rating chosen by the user or if the way I did is already good. I appreciate the help!
PS: whenever I looped through the nodelist, it returned all the elements and not each of them like in the first forEach() of the code.
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