Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Request path contains unescaped characters
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 Components with CSS/JS/SASS

@Nghuynh07

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 am using SASS for this project. I got stuck for the longest time on the 'active' class. I had no idea that the 'active' class needs to be inside of its parent's class which is 'container' for it to take effect. I had it outside originally. Is it because SASS is nested?

I wasn't sure if localStorage was used correctly; but it worked!

I am fairly new to programming in general and recently got really into frontend. Ultimately I want to get a job as front-end in near future. Any feedback, tips, best practices will be greatly appreciated! thank you

Community feedback

@fazzaamiarso

Posted

Hello @Nghuynh07!

Your implementation of localStorage is correct. An improvement you can make is to remove bind() on the star function because it's the same as doing this

form.addEventListener('click', star)

I hope it helps! Goodluck on your front-end journey!

0

@Nghuynh07

Posted

@fazzaamiarso thank you!

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