Selecting Elements and Handling Events
Query the DOM, bind events, and update visible state in one predictable flow.
Edit the panels below and press Run to preview. Nothing you type here is saved — refreshing the page restores the original starter code.