Build your first JavaScript program: a number guessing game!
We're going to create a "Guess the Number" game! The computer will think of a random number between 1 and 100, and you'll try to guess it in 10 attempts or fewer. After each guess, we'll tell you if you need to go higher or lower.
One of the hardest things to learn in programming isn't the syntax—it's learning how to break down problems into smaller, manageable pieces that a computer can understand.
I've selected a random number between 1 and 100. Can you guess it in 10 turns or fewer?
Store the random number, guesses, and game state
Process each guess and update the game
Check if guess is correct, too high, or too low
Respond to button clicks and keyboard input