Build a Drum Machine failed #5 and #6

Tell us what’s happening:
I think my machine is working and do all is described on the test, but for some reason I just can’t pass #5 and #6. Would anyone please take a look at my codepen? Thanks!

Your code so far

See the Pen Fork Me! FCC: Test Suite Template by Mandy Wong (@mkmwong) on CodePen.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36.

Link to the challenge:

I do not see any HTML in your pen.

I think they are sending the capital letter for the test, try accepting that on your input event… because in keycode ‘Q’ is not equal to ‘q’.
maybe that’s the test failure that you are having.

You are creating a new audio within your function playClip

 const link = new Audio(document.getElementById(;

but you are suppossed to trigger the audio clip contained in its child <audio> element.

So try rewriting your playClip function using the audio id as parameter.