javascript play audionfile code example
Example 1: play audio javascript
var bMusic = new Audio('welcome1.mp3')
bMusic.play()
Example 2: html play audio programmatically
document.getElementById('yourAudioTag').play();
var bMusic = new Audio('welcome1.mp3')
bMusic.play()
document.getElementById('yourAudioTag').play();