Glossary: Data Structures and Algorithms in JavaScript
this
Inside a method, the object the method was called on, so this.items is that particular stack's array.
Glossary: Data Structures and Algorithms in JavaScript
Inside a method, the object the method was called on, so this.items is that particular stack's array.