What is the purpose of module.exports in Node.js?

Instruction: Explain how module.exports is used in Node.js applications.

Context: This question tests the candidate's understanding of the module system in Node.js, specifically how functionality is exposed from one module to another.

Upgrade to view answer

Related Questions