diff --git a/01 - JavaScript Drum Kit/drumKit.js b/01 - JavaScript Drum Kit/drumKit.js
new file mode 100644
index 0000000000..ce7f01bd7c
--- /dev/null
+++ b/01 - JavaScript Drum Kit/drumKit.js
@@ -0,0 +1,30 @@
+function playSound (evnt) {
+
+ const audio = document.querySelector(`audio[data-key="${evnt.keyCode}"]`); // This selects the audio element.
+
+ const key = document.querySelector(`.key[data-key="${evnt.keyCode}"]`);// This selects the
with the class="key".
+
+ if (!audio) return; //this will stop the function from running if there is no audio associated with the pressed key.
+
+ audio.currentTime = 0;// allows the audio to restart when the key is pressed multiple times.
+
+ audio.play();// excecutes audio file.
+
+ key.classList.add('playing');//This adds the CSS class of "playing" to the key being pressed.
+
+ // console.log(audio);
+ // console.log(key);
+};
+
+function removeTransition(evnt) {
+ if (evnt.propertyName !== 'transform') return;
+
+ this.classList.remove('playing');
+};
+
+const keys = document.querySelectorAll('.key');
+
+keys.forEach(key => key.addEventListener('transitionend', removeTransition));
+
+
+window.addEventListener('keydown', playSound);//On keydown this executes the playSound function.
diff --git a/01 - JavaScript Drum Kit/index-FINISHED.html b/01 - JavaScript Drum Kit/index-FINISHED.html
deleted file mode 100644
index 1a16d0997c..0000000000
--- a/01 - JavaScript Drum Kit/index-FINISHED.html
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
-
-
JS Drum Kit
-
-
-
-
-
-
-
- A
- clap
-
-
- S
- hihat
-
-
- D
- kick
-
-
- F
- openhat
-
-
- G
- boom
-
-
- H
- ride
-
-
- J
- snare
-
-
- K
- tom
-
-
- L
- tink
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html
index 4070d32767..cdf6acf4e3 100644
--- a/01 - JavaScript Drum Kit/index-START.html
+++ b/01 - JavaScript Drum Kit/index-START.html
@@ -4,6 +4,7 @@
JS Drum Kit
+
@@ -57,10 +58,8 @@
-
-
+
+