Skip to content

Instantly share code, notes, and snippets.

@alansemenov
Last active April 11, 2016 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alansemenov/c7244698748da720cb4e1ef018d0eddd to your computer and use it in GitHub Desktop.
Save alansemenov/c7244698748da720cb4e1ef018d0eddd to your computer and use it in GitHub Desktop.
function getLaserSwordOrigin() {
var s = "";
if (getLaserSwordColor() == “blue”) {
s = “I\’m owned by Luke Skywalker.”;
}
else if (getLaserSwordColor() == “green”) {
s = “I\’m owned by Yoda.”;
}
else if (getLaserSwordColor() == “red”) {
s = “I\’m owned by Luke\’s pa.”;
}
else {
s = “I\’m made in China”;
}
return s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment