Drum machine failing test #4

Drum machine failing test #4
0

#1

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.


#2

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

On what line of your HTML is this image?


#3

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


#4

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


#5

…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.


#6

Thanks man! You are the best.

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


#7

Thanks @JohnnyBizzel for your help