Node-Require Flashcards
1
Q
What is the purpose of module.exports in a Node.js module?
A
it is used for defining stuff that can be exported by a module. Whatever is exported from a module can, in turn, be made available to other modules
2
Q
How do you import functionality into a Node.js module from another Node.js module?
A
Using the require function