Tell us what’s happening:
Test 9 keeps failing, even though when I press the corresponding keyboard buttons, it plays the sound.
Because I’m not sure, if I’m allowed to display my code (since it’s a certification) I didn’t include it in here, but can show snippets if asked.
What my code does is, it uses a keydown event that scans for the keypress, and matches it against a regex which includes [qweasdzxc] and then it stores it inside “audio”. I then play the audio and it works, but test 9 doesn’t allow it.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0
Challenge Information:
Build a Drum Machine - Build a Drum Machine