Audio in JS not working
neodymium (28)

I'm trying to play audio by doing this:

var audio = new Audio("sound.mp3");;

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
locness3 (13)

@neodymium BTW commenting in CSS doesn't work with // like you did somewhere