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 Rating Component

Sam Kikoma 140

@Sam-Kikoma

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


Any feedback mainly on the javascript bit would be appreciated.

Community feedback

@fazzaamiarso

Posted

Hello Sam! Nice work!

You can move this piece of code outside the forEach loop because you only need to attach it once.

  button.addEventListener("click", ()=>{
        component.classList.add("hide");
        feedback.classList.add("flex");
    })

I hope it helps! Cheers!

Marked as helpful

0

Sam Kikoma 140

@Sam-Kikoma

Posted

@fazzaamiarso Thanks a lot

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