A popular way to work with arrays is to push and pop elements. Pushing is when you add an element to the end of the array while popping is when you pop that item off the array. It's similar to inserting and deleting, except that it happens at the end of the array.
We have already learned how to iterate through a hash in one of our previous lessons, however it's a very critical task that you'll be using quite often, so I'm going to go discuss how it works in more detail. Also, I'm going to show you how you can iterate over just a key or a value.
devCamp does not support ancient browsers.
Install a modern version for best experience.