How do I add a sound when the button is clicked

USELESS BUTTON!!!

USELESS BUTTON!!!

  var clicks = 0;
  function hello() {
    clicks += 1;
    document.getElementById("clicks").innerHTML = clicks;
  };
</script>
<button class="button" onclick="hello()">Click me</button>
<h1 id="clicks">0</h1>

This is the corresponding website that I am working on USELESS BUTTON!!!

Hi @DesireTale !

Welcome to the forum!

This stackoverflow answer will help

Thank you, I will check it out!