Hands On: Completing Event Handling

The previous exercise showed that you can easily change an element in the DOM. However, instead of setting the background color of headings to red, the <div> section adjacent with the <h2> should be hidden or shown again.

In the upcoming exercise, you will learn how to do it with the operations of the DOM.

Get hands-on with 1200+ tech skills courses.