What is queue with some example?
Queue used FIFO methodology which include some methods too like-dequeue, enqueue, front, rear, print…
1 Like
queue in java script is a method which follows FIFO( first in first out )
eg: the person who is giving order first will recieve the order first n
shift is used for FIFO
enqueue,dequeue,front also