
The game (interface shown above) shows images of football grounds and presents the user with a text box. The user can then type the name of the ground into the text box and click the 'Check Answer' button. If the answer is correct/incorrect, an alert will appear to confirm this.
Here's the code:

To begin with, the HTML is a simple img, a text field input and a button input. The text field has an id property so it can be referenced in the Javscript Function. The Button has an onlick property, so it can call the function when clicked upon.
The actual function is quite basic. It calls the value from the text field (that the user has entered), then states that if this value is 'Anfield' an alert should appear informing the user that this answer is correct. I tried to use a simple 'or' (||) operator to state other possible answers, but this stopped the program from running. So instead I used an else if statement to state another possible correct answer. Then, anything else would show as incorrect due to the final else statement I used.
