Q1
What is the DOM in the context of web development?
mediumCorrect Answer: A programming interface that represents an HTML document as a structured tree of objects that JavaScript can interact with
Explanation:
The Document Object Model gives JavaScript a way to read and modify the structure, content, and styling of a webpage after it has loaded, which is how dynamic interactions like updating text without reloading the page become possible.