Reputation:
I am writing an application using jQuery (with the jPlayer plugin) that needs to store a queue of songs to play. I plan to just simply store the strings of the song names in the queue... is there a really good, simple queue implementation in javascript that anyone would recommend? jQuery's queue doesn't seem to be what I want since it deals with functions, which is way more complicated than I need.
Thanks
Upvotes: 2
Views: 546
Reputation: 4510
Why don't you simply use an array to store your song :
var mySongs = [];
mySongs.push('myNewSong');
Upvotes: 3