|Node doesn’t have a predefined “window” object cause it doesn’t have a window to draw anything.||“window” is a predefined global object which has functions and attributes, that have to deal with window that has been drawn.|
|“location” object is related to a particular url; that means it is for page specific. So, node doesn’t require that.||“location” is another predefined object in browsers, that has all the information about the url we have loaded.|
|Ofcourse Node doesn’t have “document” object also, cause it never have to render anything in a page.||“document”, which is also another predefined global variable in browsers, has the html which is rendered.|
|Node has “global”, which is a predefined global object. It contains several functions that are not available in browsers, cause they are needed for server side works only.||Browsers may have an object named “global”, but it will be the exact one as “window”.|
|“require” object is predefined in Node which is used to include modules in the app.||Browsers don’t have “require” predefined. You may include it in your app for asynchronous file loading.|
|Node is headless.||Browsers are not headless.|
|Node processes request object.||Browsers processes response objects.|
Still having issues?
If you still have issues understanding the above article, please leave a comment below and we will try to address that. In case you need help in your projects or understanding anything related to Programming; contact me, Paul Shan for assistance. Thank you for being a reader of VoidCanvas.