Portfolio Website Preview

Project Overview

"Guess My Number" is a simple JavaScript-based number-guessing game. The goal is for users to guess a randomly generated number between 1 and 20 while maintaining their highest possible score. This project demonstrates my proficiency in JavaScript fundamentals, DOM manipulation, and local storage management.

Features

  • User inputs a number between 1 and 20 to make a guess.
  • The game provides feedback on whether the guess is too high or too low.
  • Players start with 20 points, with 1 point deducted for each incorrect guess.
  • The highest score is stored and remains across rounds, encouraging users to beat their previous best.
  • The game ends when the score reaches 0, prompting a restart.

Technologies Used

  • JavaScript – Core logic, event handling, and score tracking.
  • HTML & CSS – Structuring and styling the UI for a clean, user-friendly experience.
  • Local Storage – Used to retain the highest score even after restarting the game.

Reflection

This project helped me strengthen my JavaScript skills, particularly in DOM manipulation, event handling, and local storage management. It also improved my ability to structure and style interactive web applications.

Tools Used

  • Visual Studio Code