Skip to content

Instantly share code, notes, and snippets.

@jorydotcom
Created August 4, 2012 02:44
Show Gist options
  • Save jorydotcom/3253696 to your computer and use it in GitHub Desktop.
Save jorydotcom/3253696 to your computer and use it in GitHub Desktop.
@rmurphey's Assessment problems: Problem 2
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