DEV Community

Discussion on: Stacks vs. Queues In JavaScript

Collapse
 
felipperegazio profile image
Felippe Regazio

Awesome post, really clear. Thanks. Just a little issue:

enqueue(item): Remove the top item from the stack

dequeue(): Add an item to the top of the stack
Enter fullscreen mode Exit fullscreen mode

In this part of your post the descriptions are swaped i guess (sorry if i missunderstood your explanation).

Collapse
 
emmabostian profile image
Emma Bostian ✨

That's what happens when you copy & paste :P