The purpose of this app is to play a random history quiz game.
The video shows the game being played, the branding screen, how you win, and a restart function.
You have an option between two buttons. One is right the other is wrong. Get three in a row to win.
The data stored in local storage contains the users score at the end of the game. It saves it for later.
Without the local storage block the user would not be able to track their high score.
The procedure is called whenever the user presss restart or play. When the user presses play the game resets and so does the score.
When the user gets a correct answer right the high score goes up one.
If the user gets one wrong then a message pops up prompting the user to press restart.