diff --git a/index.js b/index.js index 6c3f7f8..5f37a3b 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,7 @@ - -for(var i = 0; i < document.querySelectorAll(".drum").length; i++){ +for(let i = 0; i < document.querySelectorAll(".drum").length; i++){ document.querySelectorAll(".drum")[i].addEventListener("click", function (){ - var buttonHTML = this.innerHTML; + let buttonHTML = this.innerHTML; makeSound(buttonHTML); buttonAnimation(buttonHTML);