node-require Flashcards
1
Q
What is the purpose of module.exports in a Node.js module?
A
to create an object of properties that can be assigned a new value, and that value can then be exported and used on a different Node.js module
2
Q
How do you import functionality into a Node.js module from another Node.js module?
A
use require( ) function with the other Node.js as the argument