0PricingLogin
Javascript for Kids · Lesson

A Loop Inside a Loop

Loops within loops.

A Loop in a Loop?! 🤯

What if you put a loop INSIDE another loop? It is like a wheel spinning inside a bigger wheel! ⚙️⚙️

This is called a nested loop, and it makes amazing art!

Outer and Inner 🪆

Think of nesting dolls! 🪆 The outer loop is the big doll. The inner loop is the small doll inside.

For every ONE turn of the outer, the inner loop runs ALL its turns!

All lessons in this course

  1. A Loop Inside a Loop
  2. Rows and Columns
  3. Star Triangles
  4. A Times Table
← Back to Javascript for Kids