node-module-system Flashcards
1
Q
What is a JavaScript module?
A
A module is a file and the programs get divided into different files, while they all do different things
2
Q
What values are passed into a Node.js module’s local scope?
A
The file name, dir name, module, require, exports
3
Q
Give two examples of truly global variables in a Node.js program.
A
- clear immediate method
- the console object