Tell us what’s happening:
I can’t get my Drum Machine to pass 5 and 6 even though it’s completely functional. I get the way I coded it was a little jank, but it seemed better than to create a function for every single key
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Challenge: Front End Development Libraries Projects - Build a Drum Machine
Link to the challenge: