Javascript is just a name which was given while JAVA was popular and before that when it was made it's name was LiveScript. The real name of JS is ECMAScrpit. JavaScript was created on one of the Internet's First Web Browser named Netscape Navigator .
The DOM: The DOM stands for "Document Object Model" and is a tree-like structure that is a representation of the HTML document, the relationship between elements, and contains the content and properties of the elements.
The DOM is not:
- part of the JavaScript language.
The DOM is:
- constructed from the browser
- is globally accessible by JavaScript code using the document object.