Design comparison
SolutionDesign
Solution retrospective
I'm having trouble with the rating section .Can someone provide feedback on how to overcome undefined in the rating that I made with js. default rating is 5 of 5. I'm very thanksful for you'r feedback
Community feedback
- @shempill24Posted over 1 year ago
As per your posted question. Check the last line on your js file. It should be
rating.innerHTML= rate.innerHTML
->rates.innerHTML is returning the nodeList vs the inner text of the single clicked rate which is why it is returning undefined. Great job!
Marked as helpful1
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