Ages 8–10/While: Keep Going Until…
📖 Story

While: Keep Going Until…

Mission control counts down from 5 to 1, then launches. A while loop keeps repeating for as long as something stays true.

What you'll learn

Use a while loop and change the variable that stops it.

New command

while (count > 0) { }
💻 Code Editorjs
🎬

Press Run Code to see your creation!

⏮ Previous lesson