How to create effecient stack implementation in javascript?
I need a good stack implementation in JS. Pref j开发者_运维技巧query
Please help
You should be able to use an Array, as it contains the methods push and pop. If required you could write a wrapper around it to hide the fact it is an array.
精彩评论