window is not defined nodejs code example
Example: window is not defined javascript
'window' is only defined in the context of web browsers.
You must run your code by linking it in an HTML document that is running
in your browser to have access to 'window' and other DOM features.