node rquire Flashcards
1
Q
What is the purpose of module.exports in a Node.js module?
A
gives us a return value to be used in another function.
2
Q
How do you import functionality into a Node.js module from another Node.js module?
A
require(‘./ file name’) function