Please enter a number between 1 and 10 to change the image.
When would be an instance where validation is useful in a website?
One instance where it is useful is to check to see if a username that a user enters is using any invalid characters.
When you click the image that doesn't start as bulbon or bulboff it falls back to the else statement which is bult on. So when someone clicks the image, it will then go to bulbon. After this it will go back to bulb off if you click it again.