What does the exports shorthand refer to in CommonJS?
- A A reference to module.exports
- B A separate object unrelated to module.exports
- C The global scope
- D A reserved keyword
Answer
A reference to module.exports
exports initially points at module.exports, so adding properties works. Assigning a whole new value to exports breaks the link and exports nothing.





