javascript new Audio() code example
Example 1: play audio in javascript
var audio = new Audio('audio_file.mp3');
audio.play();
Example 2: js var audio = new audio
var myAudio = new Audio("myAudio.mp3");
myAudio.play();
var audio = new Audio('audio_file.mp3');
audio.play();
var myAudio = new Audio("myAudio.mp3");
myAudio.play();