.front()
KyraThompson67 total contributions
Published May 23, 2022Updated Dec 21, 2022
Contribute to Docs
The .front()
method returns the next element within the queue. This will be the oldest element of the queue or the element which was added the earliest.
Syntax
The .front()
method can be called on a queue using the following syntax:
queueName.front();
Codebyte Example
The following codebyte example calls the .front()
method on the colors
queue:
All contributors
- KyraThompson67 total contributions
- Christine_Yang265 total contributions
- garanews209 total contributions
Looking to contribute?
- 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.