re: Implementing Stacks with JavaScript VIEW POST


And we can do something similar for queues right?


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.

Code of Conduct Report abuse