I have been web coding for over 4 years now and for some reason this question popped into my head. I can write HTML, CSS, and JavaScript and I understand the DOM, but I realized if the DOM is merely an interface, what is a JavaScript object for? Is it displayed to the user using a render function you make up, sort of like Java? Is it similar to an MVC where the view is the HTML, the controller is the user input which updates the model and view?
I know this would be discussed in a CS class but I have been through 2 years already and still don't know it.
I did a little bit of looking on this topic but this isn't what I'm looking for. What is the relationship been the DOM, raw html, and what is display on the page?