Node Require Flashcards
1
Q
What is the purpose of module.exports in a Node.js module?
A
To export a function defined in one module to another.
2
Q
How do you import functionality into a Node.js module from another Node.js module?
A
You call the require function and pass in the module filepath as an argument.