My project can do the project demands. Show the key on a display, different id’s for every key using Q, W,E,A,S,D,Z,X,C . I also have a div with drum-pad class. And I can click on the div or using a key for play a sound, but I can’t pass theese 2 tests.
5. When I click on a .drum-pad element, the audio clip contained in its child <audio> element should be triggered.
6. When I press the trigger key associated with each .drum-pad, the audio clip contained in its child <audio> element should be triggered (e.g. pressing the Q key should trigger the drum pad which contains the string “Q”, pressing the W key should trigger the drum pad which contains the string “W”, etc.).
what’s exactly the necessary to pass these tests?
I forgot to put my project’s link.My drum-machine project.