Anyone please help.
I am trying to build a game in Javascript and being new to JS I am a bit stuck.
Using the [B]prompt[B]while
On clicking the OK button an Alert box comes up to tell the user after each guess if the number is less than or greater than their guess.
It has also to keep track of the number of times the user guesses the number.
So that if the user cancels of takes more than 7 guesses to guess the number the script should send out an Alert box telling them that they have lost the game. It then resets the counter to 0.
If the user guesses the number within 7 tries the Alert box says Congratulations and resets the counter to 0.
All Help Much Appreciated.