node Flashcards

1
Q

node: Commonjs is a

A

module loader

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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