Design comparison
SolutionDesign
Solution retrospective
Any feedback mainly on the javascript bit would be appreciated.
Community feedback
- @fazzaamiarsoPosted over 2 years ago
Hello Sam! Nice work!
You can move this piece of code outside the
forEach
loop because you only need to attach it once.button.addEventListener("click", ()=>{ component.classList.add("hide"); feedback.classList.add("flex"); })
I hope it helps! Cheers!
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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