JSFiddle - React, Tailwind, and code Playground
HTML
<audio id="myAudio">
<source src="punch-high1.mp3" type="audio/mpeg">
</audio>
<script>
var x = document.getElementById("myAudio");
x.loop = true;
x.autoplay = true;
x.load();
console.log(': ', x);
</script>