Step Ten

Dissecting the Code

The first line of the code at Step Nine adds an event listener to the button. The button is waiting to be clicked. Once the button is clicked, it runs the function called onStop. The function tells the SoundMixer to stop all sounds.