title: How to prevent "The play() request was interrupted by a call to pause()" error?
body: <p>I made a website where if the user clicks, it plays a sound. To prevent the sound from overlapping, I had to add the code: </p>
  
  <pre><code>n.pause();
  n.currentTime = 0;
  n.play();
  </code></pre>
  
  <p>But that causes the error:
  <code>The play() request was interrupted by a call to pause()</code>
  <br /> To come up each time the sound event is triggered right after another trigger. The sounds still plays fine, but I want to prevent this error message constantly popping up. Any ideas?</p>