Last active
October 21, 2017 08:19
-
-
Save John-Dormevil/1780d82eaf27a89d42aeccb05d0997d8 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
// greetings.js | |
// exports with module.exports and achieved the same result. If this seems confusing, | |
// remember that exports and module.exports reference the same object. | |
var exports = module.exports = {}; | |
exports.sayHelloInEnglish = function() { | |
return "HELLO"; | |
}; | |
exports.sayHelloInSpanish = function() { | |
return "Hola"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment