Queues in JavaScript

In computer science a queue is a linear data structure. The description sounds a bit esoteric but the concept is actually easy to grasp. You can imagine a scenario like this being a queue: camping in line outside the Apple store for a new iPhone. If you are the first one in line, you get the first iPhone. There are no cuts in line. If you are the first in line then you are the first one serviced. First In, First Out you could say.

Continue reading Queues in JavaScript