Drum machine failing test #4

Drum machine failing test #4


Hi all,

I’m having some trouble passing test #4 for the Drum Machine project and I’m not sure why. Can you please help me pinpoint what I am doing wrong here;

thanks in advance.


Within the “img-div” element, I should see an element with a corresponding id=“image”.

On what line of your HTML is this image?


Sorry, I do not get it. I am suspecting you did not run the appropriate Test Suite.


Reading through the error text can sometimes help point you towards the issue.

“Each audio element should have a “src” attribute : expected false to equal true”

Sounds to me like you need to apply the src on the audio element rather than having a source element nested inside it


…and an id corresponding to the inner text of its parent

Note these need to be the letter of the note in capitals. Not myX whatever.

Took me a while to figure out all the problems. Maybe put more comments in explaining what things are for in the JS.


Thanks man! You are the best.

I did not know a src could be included in the audio element that way.
Thanks again!


Thanks @JohnnyBizzel for your help