pop method

dynamic pop()

Implementation

pop() {
  --top;
  return items.removeLast();
}