whilst trying to implement the 25 + 5 challenge, I got caught up by nasty bug.
its like this.
The challenge requires that the clock must have a warning system that is triggered when timer ends, specifically it requires a buzzer. I am using the new Audio() api to generate the audio. when ever timer reaches zero, i invoke the play() method and when reset, the pause() and rewind the track using currentTime = 0. Seems straight forward. When I run the FCC test bundle. I get an error like this.\n
ncaught (in promise) DOMException: The play() request was interrupted by a call to pause().
You are not binding this.playPromise, so that’s one possibility. Also, you’re using react, yet are managing the html directly and retrieving the DOM node using vanilla javascript. You should let react render the audio element and get the reference using refs