Hi guys! i have a question i did all the drum machine, and although when i press the right key the sound play, the test still fails, why? i saw that my code it’s a little different from the other around but the test number 6 stil fail
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Challenge: Front End Development Libraries Projects - Build a Drum Machine
Thank you so much. At least I’ve made a change: I created another variable “letter”, to which I’ve assigned (let letter=event.key.toUpperCase();), and I conducted the ‘if’ test on that. However, that’s the only thing I changed, as the actual trigger remained the same (document.getElementById(event.key.toUpperCase()).parentNode.click();). I was going insane! Thanks a lot.