11.
Which JavaScript method is used to replace one HTML element with another in the DOM?
12.
What is the purpose of the setAttribute() method in JavaScript?
13.
How can you hide an HTML element from the user interface using JavaScript?
14.
Which JavaScript event is triggered when a user clicks on an HTML element?
15.
How can you add a CSS class to an HTML element using JavaScript?
16.
What does the removeChild() method do in JavaScript?
17.
How can you dynamically change the text content of an HTML element based on user input using JavaScript?
18.
What is the purpose of using the innerHTML property in JavaScript?
19.
How can you dynamically change the background color of an HTML element based on user actions using JavaScript?
20.
How can you dynamically change the CSS style of an HTML element using JavaScript?