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 trialErika Schmidt
5,455 PointsWhat is a node?
I'm coming across the term node more and more often these days and I'm still not exactly sure what it is. I know it has to do with JavaScript, but that's about it.
So, what is a node? How is it used in code?
Thanks!
2 Answers
Candice Eisner
10,514 PointsBasically, a node is a generic name for any sort of object within the DOM.
You can change the properties of any node in your code.
This may help you understand: http://javascript.info/tutorial/dom-nodes
HOWEVER.. there's also Node.js, which might be what you've been hearing about? That's a different kettle of fish: http://nodejs.org/
Brandon Jepson
7,018 PointsIt's the name of an element within the DOM. A paragraph object within an HTML doc would be considered one node of the HTML document object.