0Pricing
Javascript for Kids · Lesson

Drawing Patterns with Loops

Print fun shapes and patterns.

Drawing with Loops 🎨

Hi, pattern painter! 🌟 Loops can DRAW pictures with stars and shapes!

Let us make cool patterns together. ⭐

for (let i = 0; i < 3; i++) {
  console.log("*")
}

A Row of Stars ⭐

Let us print a line of stars going down!

Each loop adds one star. 🌟

for (let i = 0; i < 5; i++) {
  console.log("*")
}

All lessons in this course

  1. Why We Use Loops
  2. Counting with a for Loop
  3. Repeating with while
  4. Drawing Patterns with Loops
← Back to Javascript for Kids