c1120 > node-require > Flashcards
What is the purpose of module.exports in a Node.js module?
It exports the file, making it able to be imported by other files.
How do you import functionality into a Node.js module from another Node.js module?
Using the require keyword.