commit
d19401e4bf
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ For stacks, the latest pushed item is received first, that's also called LIFO (L
|
||||||
|
|
||||||
Arrays in JavaScript can work both as a queue and as a stack. They allow you to add/remove elements both to/from the beginning or the end.
|
Arrays in JavaScript can work both as a queue and as a stack. They allow you to add/remove elements both to/from the beginning or the end.
|
||||||
|
|
||||||
In computer science the data structure that allows it is called [deque](https://en.wikipedia.org/wiki/Double-ended_queue).
|
In computer science the data structure that allows this, is called [deque](https://en.wikipedia.org/wiki/Double-ended_queue).
|
||||||
|
|
||||||
**Methods that work with the end of the array:**
|
**Methods that work with the end of the array:**
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue