We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 810e356 + b23abbb commit 5b9798fCopy full SHA for 5b9798f
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