A Last-In, First-Out (LIFO) data structure. Imagine a stack of plates—you always take the one off the top.
1function pop():2 if isEmpty: return Error3 return stack[--top]
Ready for operations