I am a new beginner in web developing. I have some trouble to understand the relationship between DOM Interfaces and Objects (Object-oriented programming concept). Could someone please help me to get a definitive answer for the questions bellow?
1) Does the Node Interface in Javascript represent a Class with properties and methods as described in https://developer.mozilla.org/en-US/docs/Web/API/Node ?
2) If I am not mistaken, all DOM Interfaces such as Document and Elements are also Nodes ---> Document Nodes, Element Nodes, Text Nodes....Would that means all of those DOM Interfaces are children Classes of the Node Class? and all of the HTML elements and attributes such as (p, div, a, img,...) are both Node Objects and DOM Interface Objects - which they belong to?
Update #1:
I am trying to learn web programing from site like Codecademy, W3Schools and many other online sources. However, even with some understanding about Javascript and Object-oriented Programing, I have problem understanding and connecting the dots on how DOM Interfaces components work with each other in terms of Object-oriented Programing such as Classes, Objects, Properties and Methods... I could not find a source to actually bridge the gap between learning the Javascript Programing Language and actually using the language and its Object-oriented methodology in real life (through DOM Interfaces ofcourse).