Last active
August 29, 2015 14:14
-
-
Save jorinvo/2dd066482042162c4d45 to your computer and use it in GitHub Desktop.
Declare functions in order of importance
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
var upDown = function(name) { | |
return up(name) + '-' + down(name) | |
} | |
var up = function(s) { | |
return s.toUpperCase() | |
} | |
var down = function(s) { | |
return s.toLowerCase() | |
} | |
module.exports = upDown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment