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