When the user either guesses the correct answer, or reaches the last guess before answering correctly. Call this end game functionality. The end game functionality should tell the player how many guesses it took to get the correct answer, or that they didn't guess it correctly. It should also display the correct answer somewhere on the page. Display a button that will start a new game.
When the user either guesses the correct answer, or reaches the last guess before answering correctly. Call this end game functionality. The end game functionality should tell the player how many guesses it took to get the correct answer, or that they didn't guess it correctly. It should also display the correct answer somewhere on the page. Display a button that will start a new game.