Tell us what’s happening:
My drum machine is in vanilla JS, it works as expected, but I can’t pass tests 5 and 6.
One thing I noticed, but couldn’t fix: The app only responds to keys being pressed on the keyboard after I click somewhere close to the div containing the pads. It won’t work from the beginning.
I also noticed the .drum-pad elements have to be clickable, but I haven’t been able to use an
Thanks in advance, fellow campers!
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/71.0.3578.98 Safari/537.36.
I think the issue is that the test needs my clickable element to be of class “drum-pad” and have an as a child element. I couldn’t nest an in any clickable element, so I wrapped them in a div.