Skip to content

Commit

Permalink
Merge pull request Atul0002#2 from rohityadav-sas/main
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
AtulTiwari02 authored Nov 7, 2023
2 parents 30bfc5e + b4863b5 commit 8246d38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 8246d38

Please sign in to comment.