In this video I demonstrate how to use nested for loops to draw a 2-d grid pattern on the canvas, using P5. #p5js #coding #nestedforloop
These lessons are designed for high school students. I use them in my classes to teach teens how to code.
In this lesson I show you how to use a for loop inside of another for loop, to create a grid pattern with rows and columns.
P5 with JavaScript is a great language for beginning programmers. Check out my other videos on using P5 to learn programming.
If you are a teacher, please feel free to use my videos as part of your curriculum. I have many more videos on my channel. Check them out.
If this has proved helpful, please consider subscribing to my channel. Have a great day!!
![](https://i.ytimg.com/vi/G_vKebvhpa0/maxresdefault.jpg)