FSD Module 2 Question Bank
FSD Module 2 Question Bank
4. How can you manipulate the content and attributes of DOM elements using JavaScript?
Describe how to use properties like `innerHTML`, `textContent`, and `setAttribute()` to
update element content and attributes. Provide examples of each.
6. What are some common types of events in JavaScript, and how are they used?
List and explain different event types such as `click`, `mouseover`, `keydown`, `submit`,
`load`, etc. Give examples of how these events can trigger JavaScript functions.