Input: const stack = new Stack(); stack.push(1); stack.push(2); stack.pop(); stack.peek();
Output: 1
Click 'Run Code' to see the output