console.log(module.exports); //-> {}
exports.apple = 'apple';
console.log(module.exports); //-> { apple: 'apple'}
module.exports['pear'] = 'pear';
console.log(module.exports); //-> { apple: 'apple', pear: 'pear'}
module.exports = 'uhoh';
console.log(module.exports); //-> uhoh
exports.tooBad = 'Too Bad...';
console.log(module.exports); //-> uhoh
Last active
March 18, 2018 13:14
Star
You must be signed in to star a gist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment