title: How can I get rid of something in an array after it is used?
body: <p>Okay, so I'm trying to work on getting a few songs to play. I have them in an array so I could get them to play in a random order. Is there a way where I could take out an .mp3 after it is played? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var thisHoldsThePaths = ["music/badapple.mp3", "music/heartbreak.mp3","music/caramell.mp3"];
  
  var indexNumber = Math.floor(Math.random() * (thisHoldsThePaths.length));
  
  var audio = new Audio(thisHoldsThePaths[indexNumber]);
  audio.load();
  audio.play();</code></pre>
  </div>
  </div>
  </p>
  
  <p>That's what I have so far.</p>