Guess the number game in Javascript

Develop a JavaScript solution to the follow problem: Create a program that asks a user for a number between 1 and 100, the program should then output to the user higher, lower, or correct, depending upon the input from the user and the random number assigned to the number to be guessed. Once the user is correct, the program should print off the correct answer, but also the number of times the user was incorrect.  The program then should ask if the user would like to play again, and if so start the game again, and when correct subsequent times, compare the users high score with their current score, providing an output to state such, as "Great job you guessed 3 less times!", or "Whoops, you need 2 more guesses this time :(".Your program must:
  • Pseudo-code - type in separate document and upload to same assignment folder.
  • be properly commented
  • satisfy all conditions above in the stated problem.
Powered by