/guess-the-number

Guess the Number for beginner using javascript

Primary LanguageJavaScript

guess-the-number

Guess the Number for beginner using javascript

Todo Module 2 Javascript course ( profit with javascript )

Todos :

  • Guess The Number Game
  • Todo: Get user value from input and save it to variable numberGuess
  • Todo: Generate a random number 1 to 100 and save it to variable correctNumber
  • Todo: Console whether the guess is too high, too low, or is correct inside playGame function
  • Todo: Create a function called displayResult to move the logic for if the guess is too high, too low, or correct
  • Todo: Complete the showYouWon, showNumberAbove, showNumberBelow
  • Todo: Use the showYouWon... functions within displayResult to display the correct dialog
  • Todo: Save the guess history in a variable called guess
  • Todo: Display the guess history using displayHistory() function
  • Todo: Use the initGame() function to restart the game