Queues in JavaScript | KIRUPA


Earlier, we saw that stacks are are a Last In First Out (LIFO) data structure where items are added and removed from the end. Contrasting that, we have the other popular data structure, the queue. This is an interesting one that we'll learn more about in the following sections.

This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/queues_in_javascript.htm