DEV Community

loading...

Discussion on: Implementing Stacks with JavaScript

Collapse
sauloco profile image
Saulo Vargas

And we can do something similar for queues right?

Collapse
christinamcmahon profile image
Christina Author

Yes just remember LIFO (last in, first out) for stacks and FIFO (first in, first out) for queues! General ideas are very similar though! I may write a post about Queues in the future if I think they're different enough to deserve a post.