Can I use document object in nodejs application. cause I was make a weather app using nodejs and express js but I cannot select my index.html dom elements using document.querySelector() or all selection methods for populating my elements dynamically.
No, you can not access ‘document’ object within node.js apps. Node.js provides different environment other than a browser does. You can achieve your goal by using template engines such as Pug, Ejs etc. Any of these will help you to access and design HTML pages easily.
Ok, thank you very much bro.