0Pricing
Javascript for Kids · Lesson

Checking the Guess

Tell the player higher or lower.

Check the Guess! 🔍

Now our game needs to check the player guess! 🙋

Is it too high, too low, or just right? 🎯

The Guess Box 📦

The player picks a number. We save the secret and the guess! ✍️

let secret = 7;
let guess = 5;
console.log("Guess: " + guess);

All lessons in this course

  1. Planning the Game
  2. Making the Secret Number
  3. Checking the Guess
  4. Winning the Game
← Back to Javascript for Kids