79471762

Date: 2025-02-27 06:29:39
Score: 1
Natty:
Report link

When you define module.exports as myFunc, you are defining the export object to be the function itself, but you were expecting the function to be a part of the object. The following would be correct:

console.log(test2());

Alternatively, define the function as a part of the export but not the export itself.

module.exports = {myFunc};
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: 2603003199