1) <body onclick="document.getElementById('sound').play();">
VS
2) document.addEventListener('click', musicPlay); function musicPlay() { document.getElementById('sound').play(); }
Thank you.
https://stackoverflow.com/ might be better suited for specific programming language questions.