writen in:
- JS
- TypeScript
Guess the number game is a game is a challange that I have complete from jonas.io cource the Challenge teaches you how to minipulate the DOM elements and set the contents back to default this challange also introduces refactoring of JS vanilla.
-
By default a random number is already loaded when the web page opens, all you need to do is insert a number in the number box and click "check"
-
Notice to the right, where it says score. Meaning you have have 10 attempts to guess the number correctly. When all attempts finish the game ends.
-
Also on the right hand side you have the "highest score" telly from this it keeps count of how many times you've guessed correct.
-
As stated once all chances are used up, on the top left corner click again to start the game oveer.
Note:If perhaps you've given up and want the answer to the mystery number. Open the Web browser console and see the logs. You will find the number. insert it into the answer box and see the web page change.

Access the demo here.
