Step 19: Array Methods

Ruby has a ton of built-in methods that allow us to do cool stuff with arrays. One of the most important skills needed to be a successful developer is the ability to find, understand, and use documentation for the programming languages, frameworks, and other software you’re working with. All of the built-in methods for array in Ruby can be found at You can also find documentation for every other data type we’ve discusses and more at Below are a few examples of other Array methods - check out what they do and read about them in the documentation.

fruits = ["apple", "banana", "mango", "banana", "orange", "lemon"]

It turns out that it's very useful to use puts and .inspect together as we did in the last example. So, we have this handy method p that combines the two methods.