First In First Out (FIFO) - Elements are added at rear and removed from front
Add element to rear - O(1)
Remove and return front element - O(1)*
*Using array shift() for simplicity
View front element without removing - O(1)
FIFO Principle: First In, First Out - the oldest element is removed first.
Time Complexity:
Use Cases: Task scheduling, print queue, breadth-first search, message queuing