node-require Flashcards
1
Q
What is the purpose of module.exports in a Node.js module?
A
To export code to be used elsewhere. There to specify what in that file should be available to other modules that require it.
2
Q
How do you import functionality into a Node.js module from another Node.js module?
A
require()