I am making a game with HTML5 and JavaScript.
How could I play game audio via JavaScript?
Pretty simple solution if you have an HTML tag like below:
Just use JavaScript to play it, like so:
document.getElementById('myAudio').play();