Project: Number Guessing Game
Build a classic number guessing game by applying core JavaScript concepts like variables, conditionals, loops, and DOM manipulation. This lesson guides you through generating a random number, responding to player guesses, providing feedback, and tracking attempts to create a fully interactive browser game.
You’ve come a long way! Now it’s time to build another classic browser-based game: The number guessing game.
This game will test your ability to work with:
Variables and conditionals
Input from users
Random number generation
Loop-like behavior through repeated input
DOM manipulation
Goal
You will learn to ...