Design comparison
SolutionDesign
Solution retrospective
Hi! Here is my problem: When writing my JS for the project I wanted to use toogle to add and remove class to my element class list however it wouldn't work and I don't know why so I ended up using an "if" condition to make all of this work.
Another thing is that I wanted to use a forEach loop but I couldn't figure out how it work so if you have any ressources...
Community feedback
- @danielchang2001Posted almost 3 years ago
This video uses forEach https://www.youtube.com/watch?v=4qnWreynXLU
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