my code in js is as
var buttonscount = document.querySelectorAll(".drum").length;
for(var i=0; i<buttonscount; i++){
document.querySelectorAll(".drum")[i].addEventListner("click",clickalert);
}
function clickalert () {
alert("i got clicked");
}
my teacher is doing almost exactly this, but this is not working for me and chrome console shows following error
Uncaught TypeError: document.querySelectorAll(...).addEventListner is not a function
at index.js:4