How to play audio in JavaScript

DOM
Last updated Mar 12, 2018
<audio id="audio" controls>
  <source src="audio.mp3" type="audio/mpeg">
</audio>
const audio = document.querySelector("#audio");

audio.play();