Back to projects

Number Quest

Guess a number between 1 and 30. Each wrong attempt costs a point, and the game remembers your best round until you reload.

Number Quest project screenshot

What it does

A small JavaScript exercise built around the game loop: check a guess, update the score, end the round, and reset without reloading.

Decisions

Keep score in JavaScript
The score and high score live in page-level variables. Replay resets the score but not the high score; no storage or server is involved.
Lock a finished round
After a win or loss, Check is disabled and the input becomes read-only until Try Again is pressed.

Full notes

More on the implementation and challenges.

Next project

Grocery Guru

A shopping list app with editing, filtering, and local storage.

Working on something similar? Get in touch.