Skip to content

Instantly share code, notes, and snippets.

@ToreySound
Created November 10, 2013 04:51
Show Gist options
  • Save ToreySound/7393976 to your computer and use it in GitHub Desktop.
Save ToreySound/7393976 to your computer and use it in GitHub Desktop.
var answer = prompt("You! What is the value of 2 + 2?", "");
if (answer == "4")
alert("You must be a genius or something.");
else if (answer == "3" || answer == "5")
alert("Almost!");
else
alert("You're an embarrassment.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment