Asking
Only logged in members can reply and interact with the post.
Join SimilarWorlds for FREE ยป

I have a question about Node.js ๐Ÿ˜ฌ๐Ÿ˜“

With JavaScript you can write: document.getElementByID
โ€” But with Node.js "document" doesn't exist.

So what's the Node.js version of "document.getElementByID"?
This page is a permanent link to the reply below and its nested replies. See all post replies ยป
IHateViolence ยท 36-40, M
nodejs runs on the server
it doesn't have access to the DOM, which is only available on the front-end