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 trial2 Answers
Ken Alger
Treehouse TeacherMuhammad;
As defined on their homepage:
Node.js® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
It a nutshell it is a server-side platform.
Hope it helps.
Ken
Faddah Wolf
12,811 Pointsgood answer by Ken Alger , but it's not in context of what the user was asking. in this case, in the "Interactive Web Pages with JavaScript," course module, he was asking the definition of "node" in terms of a node in the Document Object Module.
a "Node" in the HTML "Document Object Model," or DOM, is and element branching off the DOM tree that has several interfaces you can modify. as in ...
DOM | html | | | _ head | _ body | _ h1 | _ div | _ p
^^^^ in the above DOM tree example, each of the elements coming off are "nodes," and have their own interfaces from which you can get properties and make modifications. so head, body, h1, div, p, etc., are all nodes off the DOM tree.
the current definition from MDN on Nodes --
"A Node is an interface from which a number of DOM types inherit, and allows these various types to be treated (or tested) similarly."
node.js is, as Ken pointed out, a server-side JavaScript framework, not really related to this.
hope this clarifies it a bit more.
best,
-- faddah portland, oregon, u.s.a.
Ken Alger
Treehouse TeacherFaddah;
I guess my thinking was that if he wanted to know what a node was, he would have phrased it differently. I took it as what is Node as it relates to the JavaScript universe. I have seen Node used for Node.js in discussions before and I guess that is where my mind was at when I answered the question.
Muhammad;
Apologies for any confusion I may have caused.
Ken