0Pricing
Javascript for Kids · Lesson

Making the Secret Number

Pick a random number to guess.

The Secret Number! 🤫

Time to build! First, our game needs a SECRET number. 🎲

Only the computer knows it! 🤖

Use Random 🎰

Remember Math.random()? We use it for the secret! ✨

let r = Math.random();
console.log(r);

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