You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
basically, exports is an object which you can attach properties/methods to, just like any other object.. but the require function will parse a file and bind a matching keyword to a variable.
Core concepts
How do
modules
work?basically,
exports
is an object which you can attach properties/methods to, just like any other object.. but therequire
function will parse a file and bind a matching keyword to a variable.You're simply accessing that property on the global object,
module.exports
(orexports
, which its aliased to.)NPM / Using Community Modules and Publishing To NPM
CLI
Processes
Asynchronous functions
Node Debugger
Core modules (assert, crypto, http, event emitters)
The text was updated successfully, but these errors were encountered: