title: Why does audio not play in javascript
body: <p>I want to add background music to my website. I've tried this JS code:</p>
  
  <pre><code>var sound;
  function initialAudio() {
      'use strict';
      sound = new Audio();
      sound.src = '../audio/test.mp3';
      sound.loop = true;
      sound.play();
  }
  window.addEventListener("load", initialAudio);
  </code></pre>
  
  <p>I have linked the JS and HTML, but when I open the site, the sound doesn't play. Can you please help me?</p>