Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
function getLaserSwordOrigin() {
var laserSwordColor = getLaserSwordColor();
if (laserSwordColor == “blue”) {
returnI\’m owned by Luke Skywalker.”;
}
if (laserSwordColor == “green”) {
returnI\’m owned by Yoda.”;
}
if (laserSwordColor == “red”) {
returnI\’m owned by Luke\’s pa.”;
}
returnI\’m made in China”;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment