We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Stack Pop

As you should know by now, items go on and off the stack from the same end. (last in, first out).

Don't worry, the pop method is much simpler than the push method in our case, because we don't have to worry about resizing the stack.

Assignment

Complete the stack_pop function.