Thread
:
Javascript stack
View Single Post
01-20-2013, 09:09 PM
PM User
|
#
4
felgall
Master Coder
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,449
Thanks: 0
Thanked 496 Times in 488 Posts
LIFO can use either
push() and pop()
or
unshift() and shift()
- which you use only affects which end of the array is which
FIFO can use either
push() and shift()
or
unshift() and pop()
__________________
Stephen
Learn Modern JavaScript -
http://javascriptexample.net/
Helping others to solve their computer problem at
http://www.felgall.com/
Users who have thanked felgall for this post:
DDH
(01-20-2013)
felgall
View Public Profile
Visit felgall's homepage!
Find More Posts by felgall