Object module

Current Module Object

attribute

attribute type Introductions
exports Object Module exposes objects using therequireWhen referencing a module, you can get the

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