Please tell me why when I click on the ones "1111111111" in the browser, the function is called, and when I click on the twos "2222222222", the function is not called, please explain why and how to fix it?
const contactButton = document.querySelector('.contact-button');
contactButton.addEventListener('click', () => {
console.log('Hello')
})
<div class="contact-button">1111111111</div>
<div class="contact-button">2222222222</div>
I will be grateful for help. Thank you.