title: Play sound in javascript
body: <p>So I've put my sound in a sub folder inside my code (content folder) and whenever I try to play it, it says it can't find it. Here's my code: </p>
  
  <pre><code>PlaySound = function () {
      var audio = new Audio('~/Content/Sound/Down.mp3');
      audio.loop = false;
      audio.play(); 
  }
  </code></pre>
  
  <p>Anyone know why?  </p>
  
  <p>This is the error I get when I inspect: </p>
  
  <pre><code>  GET http://localhost:5/~/Content/Sound/Down.mp3 
    localhost/:1 Uncaught (in promise) DOMException: Failed to load 
    because no supported source was found.
  </code></pre>