- Active webpage Click here to see webpage
This is a solution to the Interactive rating component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Select and submit a number rating
- See the "Thank you" card state after submitting a rating
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- JavaScript
I was having doubts about how to use the addEventListener method in a variable that contained more than one element of the same type, with this one I managed to solve the problem!
btns.forEach(rate => {
rate.addEventListener('click', () => {
res.innerHTML = rate.value
})
})I want to improve my skills a lot using javascript, but with this challenge, I realized that I've already improved a lot.
- Linkedin - AdrianoEscarabote
- Frontend Mentor - @AdrianoEscarabote
- Instagram - @ogdrian
- Twitter - @drianEscarabote
