So, my drum machine code has passed 7 out of 8 tests. I’m having a problem with test 5. What I’ve realized is that my html audio element returns a promise. I’ve tried several ways handling the promise but my test still fails. I don’t know what I’m doing wrong. I also get a DOM exception saying “audio.play was interrupted by new load request.” Kindly help on this issue.Thanks. Below is the link to my codepen.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Performance issue (?) with Drum Machine | 2 | 506 | February 7, 2021 | |
Drump Machine - Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause() | 3 | 2614 | June 1, 2021 | |
Drum machine test issue | 4 | 386 | October 7, 2021 | |
Pomodoro Clock Test Bug? | 1 | 325 | June 1, 2021 | |
Drum Machine not passing Tests | 1 | 280 | August 21, 2021 |