Created
August 4, 2012 02:44
-
-
Save jorydotcom/3253696 to your computer and use it in GitHub Desktop.
@rmurphey's Assessment problems: Problem 2
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 watWord(num) { | |
switch (num) { | |
case 1: | |
return "one"; | |
case 2: | |
return "two"; | |
case 3: | |
return "three"; | |
case 4: | |
return "four"; | |
case 5: | |
return "five"; | |
case 6: | |
return "six"; | |
case 7: | |
return "seven"; | |
case 8: | |
return "eight"; | |
case 9: | |
return "nine"; | |
case 10: | |
return "ten"; | |
default: | |
return false; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment