+ 5
Your question isn't clear. I'm not sure what exactly you're asking. (..Multiple ways to do it)
But hopefully this could be it:
const audio = new Audio("sound.mp3");
To play it:
audio.play();
Or
To pause it:
audio.pause();
Refer to this if you want
https://stackoverflow.com/questions/9419263/how-to-play-audio