Keeping background music running in a game can get quite annoying. It makes sense to give users the option to turn this off. This tutorial will show you how to get free sound on / off icons to use and how to implement them so we can mute our game whenever we'd like.
HeroIcons: https://heroicons.com/
Didn't work for me as it was. The music didn't come back after mute, but when i put the audio.background.play() method after the for loop in volumeOffEl click event listener it works