Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Interactive using z-Index, and new toggle

Yori 110

@yori21

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

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

Sarah 150

@shempill24

Posted

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 helpful

1

Yori 110

@yori21

Posted

@shempill24 that solved the problem thanks.

0

Please log in to post a comment

Log in with GitHub
Discord logo

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