title: Reference error : myname is not defined in Node JS (Visual code studio)
body: <p><strong>functions1.js (file 1)</strong></p>
  
  <pre><code>const myname = () =&gt; {
  
  console.log("Hello");
  
  };
  
  module.export = myname;
  </code></pre>
  
  <p><strong>app.js (file 2)</strong></p>
  
  <pre><code>const sayname = require('./functions1');
  
  myname();
  </code></pre>
  
  <blockquote>
    <p>Reference error : myname is not defined</p>
  </blockquote>