What do “module.exports” and “exports.methods” mean in NodeJS / Express?
To be more specific: module is the global scope variable inside a file. So if you call require(“foo”) then : // foo.js console.log(this === module); // true It acts in the same way that window acts in the browser. There is also another global object called global which you can write and read from in … Read more