Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45e08db commit b23abbbCopy full SHA for b23abbb
01 - JavaScript Drum Kit/index.html
@@ -63,7 +63,7 @@
63
function playSound(e) {
64
const audio = document.querySelector(`audio[data-key="${e.keyCode}"]`);
65
const key = document.querySelector(`.key[data-key="${e.keyCode}"]`);
66
- if (!audio) return; // stop the function from running all together
+ if (!audio) return; // stop the function from running altogether
67
audio.currentTime = 0; // rewind to the start
68
audio.play();
69
key.classList.add('playing');
0 commit comments