Last active
August 29, 2015 14:14
-
-
Save ckotsovos/404a10c6bdc65fa534ba to your computer and use it in GitHub Desktop.
Chris Kotsovos Guessing Game Riddle V.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<script> | |
var myRiddle, | |
myRiddle = "eye"; | |
guess = prompt("What begins with an E and ends with an E, but contains one letter?"); | |
if (guess.toLowerCase() == myRiddle.toLowerCase()) { | |
message = "Well you're as clever as you look!"; | |
} else { | |
message = "Wrong! But you can try again!" | |
}; | |
var message; | |
alert(message); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment