title: module.exports not working as expected
body: <p>I would like to export one function in node and call it in another file. Somehow it is always executing the whole code in the exporting module (not only the function exported).</p>
  
  <pre><code>//file:  test.js
  
  module.exports = function () {
  console.log("Hello");
  }
  
  console.log("Hello2");
  
  
  
  //file: test2.js
  var test = require("./test");
  test();
  
  // Desired Output: Hello
  // My actual Output: Hello2 Hello
  </code></pre>
  
  <p>Can somebody please explain, why it is also running the second log (Hello2) although this log is not within the exported brackets?</p>