0Pricing
Javascript for Kids · Lesson

Play Again

Loop the game.

One Game Is Not Enough! 🔁

One round is fun, but who wants to play just once? Nobody! 😄

Let's make the game play again and again using a loop! 🔄

console.log('Round 1! 🎮')
console.log('Round 2! 🎮')
console.log('Round 3! 🎮')

What is a Loop? 🌀

A loop repeats code many times so you don't have to copy-paste! 🌀

Imagine telling your robot "do this 5 times" instead of saying it 5 times. 🤖

console.log('A loop repeats things! 🔁')
console.log('Super handy! ✨')

All lessons in this course

  1. The Rules
  2. Computer Picks
  3. Who Wins?
  4. Play Again
← Back to Javascript for Kids