Array indexing start at 0 for first element, the second gets 1, and so on. An index of -1 indicates the last element of the array, -2 is the next to last element in the array, and so on.
Summary In this challenge, we're going to continue exploring Ruby arrays. We'll look at different options for creating arrays filled with data, generate some nested arrays filled with data, and then ...
Ruby's arrays and hashes collections having indexes. They can also be said as indexed collections. Arrays and hashes store collections of objects which can be accessed using a key. Both arrays and ...