Create a gist now

Instantly share code, notes, and snippets.

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