When I run this code, I get an error in the console that states 'button.addEventListener is not a function' and when I mouse over responseToClick in my text editor, it says the function is void. What am I doing wrong here?
const button = document.querySelectorAll("button");
const body = document.querySelector("body");
button.addEventListener('click', responseToClick)
function responseToClick() {
const h3Tag = document.createElement('h3');
h3Tag.textContent("Foo");
body.appendChild(h3Tag);
}