Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Ali A
15,526 PointsCan DOM JS work in NodeJS?
I just to make sure. Can DOM JS work on NodeJS? Can I use DOM JS in NodeJS like to create an app or something else?
Thanks,
2 Answers
Steven Parker
243,266 PointsNode.js is a server-side JavaScript engine. You use it to run JavaScript programs outside of a browser.
Since DOM.js is a library of helper functions for working with DOM elements, I would expect Node.js would be one environment you would not use it in, since there's no DOM there. The DOM is a browser construct.
Ali A
15,526 PointsThank you, Steven I appreciate it.