Drum Machine Question

Link to project: https://codepen.io/yisun1/pen/gOWrybr

So I am fairly close to meeting the requirements for all the tests to pass except the last one I am stuck on.

“6. When I press the trigger key associated with each .drum-pad, the audio clip contained in its child

I’m not sure what I am doing wrong. When I click each of the keys it clearly plays a sound/drum-pad it is associated to. Has anyone run into a similar problem?


The error is referring to pressing keys on your keyboard, not clicking keys with a mouse or touch. So you’ll need to add an event handler that listens for key presses.

Ahh that makes sense. Thank you!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.