node Flashcards
1
Q
node: Commonjs is a
A
module loader
2
Q
node: If the name of a module in var moduleName = require(“moduleName”) doesn’t have a ./ it means
A
it is either a built in module of has been downloaded to the node_modules folder
3
Q
node: When you make a node script all of your code is actually contained
A
in a function automatically wrapping everything, with some global variables being passed in
4
Q
node: If you choose to expose functions and variable using module.exports = {}
A
you cannot export anything else outside of the object you made