title: Are variables declared in module scope not properties of the module object?
body: <p>In browsers global variables are actually properties of <code>window</code> object.</p>
  
  <p>If I declare a variable with <code>var</code> keyword in Node.js then will it be a property of <code>module</code> object?</p>
  
  <pre><code>var aaa = 'aaa';
  console.log(module.aaa); // undefined
  </code></pre>
  
  <p>Why is it undefined? Doesn't module object in Node.js follow the same logic as global object in browsers?</p>