DrumMachine tips and advices

Just did it, it all works, it passes all the tests. Only left is to split to components. Word of caution to all whom are doing this exercise:
It should be

<audio id="Q" className="clip">
    <source src="someFile.mp3" type="audio/mp3">
</audio>

instead it’s

<audio id="Q"  className="clip"  src="someFile.mp3"/>

or if you want to display error message in the case browser doesn’t support audio

<audio id="Q"  className="clip" src="someFile.mp3">
	Your browser doesn't support this audio format.
</audio>

For what ever reason when you put source tag, it show an error like there’s no src attribute … And there isn’t, since test script searches for src attribute in audio tag not in source subtag.

1 Like