Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does node really mean in Javascript?

I always see the word node. As far as I know node means a connecting point... So what do child nodes really mean and what do they do? How are they related to node.js?

Sorry for asking this stupid question. I am really new to AJAX & building a web application.


1 Answers

For javascript, any HTML DOM element is a node.

<div>
    <span></span>
    <form>   .... </form>
</div>

For example, in the HTML snippet above, span and form are child nodes of div.

Node.js is just the name of a library. It was named Node.js for other different reasons.

like image 174
Tabrez Ahmed Avatar answered May 27 '26 14:05

Tabrez Ahmed