node-module-system Flashcards
1
Q
What is a JavaScript module?
A
A JavaScript module is a single .js file
2
Q
What values are passed into a Node.js module’s local scope?
A
- exports (object)
- require (function)
- module (object)
- __filename (string)
- __dirname (string)
3
Q
Give two examples of truly global variables in a Node.js program.
A
- the process object
2. the console object