# Object module
The current module object.
# Properties
Property | Type | Description |
---|---|---|
exports | Object | The object externally exposed by the module. This can be obtained when require is used to reference this module. |
# Sample code
// common.js
function sayHello(name) {
console.log(`Hello ${name} !`)
}
function sayGoodbye(name) {
console.log(`Goodbye ${name} !`)
}
module.exports.sayHello = sayHello
exports.sayGoodbye = sayGoodbye