Question: JAVASCRIPT Create a small guessing game using nested loops. The user should be allowed to choose when to finish one round of play and whether

JAVASCRIPT

Create a small guessing game using nested loops. The user should be allowed to choose when to finish one round of play and whether or not to start another. The inner loop should generate a random number between 1 and 100. Allow the user to choose how many guesses will be permitted. For each number, display whether the users number is greater than, less than, or equal to the random number. If the user guesses correctly, the game should display the winners status and give the choice to play another round. If an incorrect guess is entered, the user should be given a hint. The game ends when either the user has used up all his guesses or has guessed correctly. If the user has used up all the guesses but has not been correct, the program should display the correct number. Be sure to generate a new random number for each round of play. Save your page as guess_it.html and be sure to include an appropriate page title.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!