Used vanilla HTML , JS and CSS+fontawesome
Project Link : https://jindal-vivek.github.io/drum-machine/index.html
Javascript link : https://jindal-vivek.github.io/drum-machine/index.js
The project seems to be working correctly still it is not passing the cases?
For me only Q pad works on click…
Sorry for the late reply , but now only keys work but still test cases are not passing
Could someone suggest a solution ?
as for #5: moving <audio>
inside <button>
and
if (power) {
event.target.querySelector('audio').play();
}
});
worked for me, i mean think it’s something about html structure and the way you select and play audio… didn’t experiment with 7 sorry, im too slow right now)
codepen