We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce49380 + 8a2b544 commit 465ce70Copy full SHA for 465ce70
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