New answers tagged

0

I am very sorry but it seems i have figured it out, see below: for (var i = 0; i < document.querySelectorAll("button").length; i++) { document.querySelectorAll("button")[i].addEventListener("click", function() { var playerChoice = (this.innerHTML); document.querySelector(".player").innerHTML = playerChoice; }) }


Top 50 recent answers are included