<audio id="audio" controls> <source src="audio.mp3" type="audio/mpeg"> </audio>
const audio = document.querySelector("#audio"); audio.play();