// Create object of audio
var audio = new Audio("/Images/BeepSound1.mp3");
//play audio file
audio.play();This code will help you to play sound files using JavaScript.
This code will help you to play sound files using JavaScript.
// Create object of audio
var audio = new Audio("/Images/BeepSound1.mp3");
//play audio file
audio.play();