Interactive Rating Component

Solution retrospective
- I found submitting form data like the radio button extremely mind tiring, I was trying all sorts of things like formData, localStorage etc
- What still confuses me is why we ask for one option value and not check if anyone is selected e.g. when we say
this.ratings.value
I think of it asdocument.querySelector
where it will give you the first item. The concept is fixed in my mind so I need a good example of why asking for one value for a radio button - Initially, when I pushed my code onto GitHub my index and thank-you were in src, and my images weren't loading. Someone In slack told me to take them out of src/ into the main root, the images worked after some dabbling with urls, so I do not understand why it was not working in src/ and why in root.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Ammar's solution.
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