Ages 6–8/Fish Swims Three Times
🎬 Actions (1 in this lesson)
🧭 Movement & tricks (3 in this lesson)

Tap any card to see the exact command on the right — then type it yourself in the editor.

📖 Story

Fish Swims Three Times

Bubbles wants to cross the reef in three big strokes. You could write the swim line three times... or you could learn the shortcut real programmers use.

What you'll learn

Meet repeat() — tell the computer to do something many times.

New command

repeat(3, () => swim("fish", 50))
💻 Code Editorjs
🎬

Press Run Code to see your creation!

⏮ Previous lesson