Audio in JS not working
I'm trying to play audio by doing this:
var audio = new Audio("sound.mp3"); audio.play();
I am getting a little click on my speakers but the sound is not playing. Is there another way of doing this?
You are viewing a single comment. View All
do you have a link to a repl?