shelman
shelman

Reputation:

Store queue of strings in javascript/jQuery

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

Answers (1)

mravey
mravey

Reputation: 4510

Why don't you simply use an array to store your song :

var mySongs = [];
mySongs.push('myNewSong');

Upvotes: 3

Related Questions