node-module-system Flashcards

1
Q

What is a JavaScript module?

A

A JavaScript module is a single .js file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What values are passed into a Node.js module’s local scope?

A
  1. exports (object)
  2. require (function)
  3. module (object)
  4. __filename (string)
  5. __dirname (string)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Give two examples of truly global variables in a Node.js program.

A
  1. the process object

2. the console object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly