.pop()
Published May 23, 2022Updated Dec 21, 2022
Contribute to Docs
The .pop()
method removes the element at the front of the queue. This will be the oldest element in the queue or the element which was added the earliest.
Syntax
The .pop()
method is called on a queue using the following syntax:
queueName.pop();
Codebyte Example
The codebyte example below shows .pop()
being used on the utensils
queue:
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.