
Lawrence N. answered 04/18/21
Javascript | React | node.js
Module.exports is a node.js wrapper and returns us the reference to whatever it is binding to.
example: module.exports.a = 10
other files will have access to that key value of “a” which is 10
on the other hand Exports exposes keys globally using module exports still. Exports adds properties to module.exports.
example: exports.b = 10
now module exports contains key values of a:10 and b:10