What is a "data model", and how does it relate to the DOM in a front-end application?
The data model is the code that is being run behind the scenes and the source of truth. It is stored information. It is not what updates the display of that information, which is the DOM. Document Object model is a programming interface that is hooked up to the data model and what you see on a webpage.
What is a "framework?" And how does it differ from a "library?"
Frameworks and libraries are pre written code. Frameworks like react enable the ui to be updated with the changing data and have more structure than a library, which can be used at any time by the developer. Frameworks make calls to your code.
Why should we consider using a framework over vanilla JS like you have been doing in mods 1 and 2?
A framework enables the ever changing data to always be displayed with the current information. Not using a framework is inefficient, lots of repetitive code that is susceptible to bugs. Frameworks allow for small isolated c