play audio in javascript
snippet in javascript

play sound javascript

user3848

var audio = new Audio("folder_name/audio_file.mp3");
audio.play();

play audio in javascript

user1303

var audio = new Audio('audio_file.mp3');
audio.play();

play audio javascript

user4027


var bMusic = new Audio('welcome1.mp3')
	bMusic.play()

play a sound wiith js

user4879

var audio = new Audio('audio.mp3');
  audio.play();