A few days ago one of the students I tutor asked me to teach them for loops, and incidentally, I have had this dynamic grid that I made one night when I needed the extra dopamine (clicking it is the equivalent of a fidget spinner). Anyways for the purpose of teaching forLoops I ended up revamping the project and including multiple functions within it that run on forLoops like dynamic DOM manipulation, creating Hexadecimal color codes, making divs disappear...etc.
Here is a code-pen:**
My student had a blast, and so I decided to make a video and post it on YT for people who also want to learn ForLoops! If you want to learn forLoops, I recommend following along the video. However, don't forget to pause it and challenge yourself to code on your own whenever possible. It's been my experience that we learn better when we push ourselves. I also recommend trying to code something else that is completely yours.
The Tutorial in Question:
Happy coding!