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
- Planning the Game
- Making the Secret Number
- Checking the Guess
- Winning the Game