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 component using CSS and JavaScript.

@lucaspicinini

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 started learning web development just 2 month ago, so keep in mind that I'm quite a beginner. This was my first project in JavaScript and I learned a lot about the DOM. Any feedback is welcome.

Community feedback

P

@elyyyse

Posted

Hey — great job on this! I noticed you made each rating input its own <button>. If you use <input type="radio"> instead and wrap them (and your submit button) in a <form>, you'll get some functionality for free and will have less JS to write. You probably learned more about the DOM doing it your way, though.

Marked as helpful

0

@lucaspicinini

Posted

@elyyyse Thanks for the tip, I'm going to start another challenge with forms to study more about them and I'll try that approach.

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