loading...

re: Implementing Stacks with JavaScript VIEW POST

FULL DISCUSSION
 

The class stack implementation has some errors, this.stack doesn't exist, also This.items should be this.items

gist

 

Thanks for pointing that out, I accidentally posted the wrong version from when I was playing around with some things. I corrected it!

Code of Conduct Report abuse