node js module .exports + return a function code example Example: module.exports equivalent es6 exports["default"] = A; module.exports = exports["default"];