Node Module System Flashcards
1
Q
What is a JavaScript module?
A
In the Node.js module system, each file is treated as a separate module.
2
Q
What values are passed into a Node.js module’s local scope?
A
Exports, require, module, __filename, and __dirname.
3
Q
Give two examples of truly global variables in a Node.js program.
A
Console and clearTimeout