Last active
April 11, 2016 20:57
-
-
Save alansemenov/c7244698748da720cb4e1ef018d0eddd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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