skip to content

require and Exports API

0 questions

Authoring a CommonJS module: the require() call, the difference between reassigning module.exports and mutating exports, and the wrapper function that gives every file its own module, exports and __dirname. Interviewers ask because reassigning exports silently exports nothing, and a circular require hands back a half-built object.

questions

no questions here yet

this part of the tree is still being written

>
0 questions in this topic or below it