Array Manipulation

Learn about arrays methods to increase your understanding of arrays.

Popping and pushing

Arrays have methods called pop and push that can be used to remove or add items.

The pop() method removes the last item from an array. To see it in action, let’s create a new shopping list array:

Get hands-on with 1400+ tech skills courses.