node-module-system Flashcards
1
Q
What is a JavaScript module?
A
A small chunk of code meant to solve a sub problem. Modules have their own unique files.
2
Q
What values are passed into a Node.js module’s local scope?
A
The object exports, the function require, the object module, the string __filename, and the string __dirname
3
Q
Give two examples of truly global variables in a Node.js program.
A
Console, clearInterval(), process, global