Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 539 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 539 Bytes

JS-30-Day-1

JS Drum Kit

I learned How to prevent a delay in audio when hitting a key repeatedly and how to use data- to create our own html attributes.

alt text

Features & Usage

- Used attribute selector in JS for the first time.
- Used `data-` to create our own HTML attributes eg. data-key
- we used `audio.currentTime = 0` to prevent a delay when we play sound if we keep hitting a key repeatedly.