Master JavaScript DOM | Events & Projects (MCQs)

1. What does DOM stand for?





2. Which method is used to select the first matching element?





3. Which symbol is used in querySelector() to select a class?





4. What will this code select?

document.querySelector("#title");





5. Which method is used to add an event to an element?





6. Which event runs when a button is clicked?





7. How do you create a new HTML element in JavaScript?





8. Which method adds a new element to the page?





9. Which method is used to remove an element from the DOM?





10. Which property changes the text inside an element?





11. Which feature is commonly used to build a Dark Mode?





12. What is used to increase or decrease numbers in a Counter project?





13. FAQ sections usually work by:





Wait for 20 seconds...

Post a Comment

Previous Post Next Post