The global variable window does not exist in node.js. Window is a browser specification, not a js language specification, so of course it cannot be used in nodejs. However, nodejs has a similar global variable called golgal, but its internal content is very different from the window in the browser.
Because node is not a browser and does not have a window.
The global variable window does not exist in node.js.
Window is a browser specification, not a js language specification, so of course it cannot be used in nodejs.
However, nodejs has a similar global variable called golgal, but its internal content is very different from the window in the browser.