Created
April 15, 2015 14:47
-
-
Save wolframkriesing/3853882d00481084257b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 callTie(points) { | |
| if (points < 3) { | |
| var pointsMap = { | |
| 0: 'Love-All', | |
| 1: 'Fifteen-All', | |
| 2: 'Thirty-All' | |
| }; | |
| return pointsMap[points]; | |
| } | |
| return 'Deuce'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment