Stack abstract data type for browser and nodejs.