node-require Flashcards
1
Q
What is the purpose of module.exports in a Node.js module?
A
So that they can be accessed elsewhere
2
Q
How do you import functionality into a Node.js module from another Node.js module?
A
call the local require() function
can assign it to a variable or destructure it