Skip to content

Instantly share code, notes, and snippets.

@John-Dormevil
Last active October 21, 2017 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save John-Dormevil/1780d82eaf27a89d42aeccb05d0997d8 to your computer and use it in GitHub Desktop.
Save John-Dormevil/1780d82eaf27a89d42aeccb05d0997d8 to your computer and use it in GitHub Desktop.
// 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