Any variable or function that’s available in the global scope is available from the window object. This is where they’re sourced.
For instance, “console.log” is available globally so you could write “window.console.log” for the same effect.
In node.js, the window object isn’t available.
Global objects in node.js are represented by the object “global.”
This is because of the node.js modular system.
Every file in a node.js application is considered a module.
The variables and functions defined in a specific file are scoped to that file alone.