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 | 499 | February 7, 2021 | |
Drum Machine not passing Tests | 1 | 278 | August 21, 2021 | |
Drum Machine Tests fail even though it is working | 11 | 1070 | September 15, 2021 | |
Drum Machine tests #5 and #6 aren't passing for some reason | 3 | 322 | November 15, 2023 | |
Drum Machine -Can't pass tests #5 & #6 | 7 | 358 | January 21, 2022 |