Skip to content

Instantly share code, notes, and snippets.

@ckotsovos
Last active August 29, 2015 14:14
Show Gist options
  • Save ckotsovos/404a10c6bdc65fa534ba to your computer and use it in GitHub Desktop.
Save ckotsovos/404a10c6bdc65fa534ba to your computer and use it in GitHub Desktop.
Chris Kotsovos Guessing Game Riddle V.2
<!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