Interactive Rating Component

Solution retrospective
Hi guys, I created two cards and then used display:none to hide what is not needed. Is that what you guys used? Or did you use separate html files for each one? Thanks.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @rymnddev
Well done. Looking at your code, we pretty much did the same thing. To load to a separate HTML file wouldn't even work, since the JavaScript would reload and you would lose your variable. No, part of the point of these easier exercises is to develop components, and those should be as contained (encapsulated) as possible.
Marked as helpful
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