These are the codes —
type here
let buttons = document.getElementsByTagName("button" )
let buttonsArr = Array.from(buttons) ;
buttonsArr.forEach( (button) => {
button.addEventListener("click", () => {
console.log("clicked");
} ) } ) ;
I want to exclude the reset-button but have no idea .
please suggest if you have any idea about how to make it work .
i was trying to make forEach method work on the buttons variable . It didnt work with the querySelector for classes . Any suggestion is Welcomed.