All about Queues

Queues are lists that preserve the insertion order of its elements, such that the first element added is the next first to be removed (FIFO). A common use case for a queue is a task queue. Tasks to be performed are added to a queue, and then they're processed in the order they were added to the queue.

  • Take a look at supported operations (such as enqueue, dequeue, and length)
  • Implement and check the code in JavaScript
  • Complete a hands-on exercise, such as performing background I/O tasks