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?
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();
That's what I have so far.