// Check if a button is clickable const buttons = document.querySelectorAll('.button'); for (const button of buttons) { button.addEventListener('click', () => { console.log('Button clicked'); }); } // Check if a link is active const links = document.querySelectorAll('.link'); for (const link of links) { link.addEventListener('click', () => { console.log('Link clicked'); }); } // Check if an input field is editable const inputs = document.querySelectorAll('.input'); for (const input of inputs) { input.addEventListener('focus', () => { console.log('Input focused'); }); } // Check if a checkbox is selected const checkboxes = document.querySelectorAll('.checkbox'); for (const checkbox of checkboxes) { checkbox.addEventListener('change', () => { console.log('Checkbox checked'); }); } // Check if a radio button is selected const radios = document.querySelectorAll('.radio'); for (const radio of radios) { radio.addEventListener('change', () => { console.log('Radio selected'); }); }