In previous exercises, we used simple data types, such as strings and integers (called Fixnum
prior to Ruby 2.4). There are also composite data types, which are a collection of other types. The most common composite data types are arrays and hashes. A variable of type array is like a list of objects. A variable of type hash is a dictionary-like lookup, where each value is stored against a key.
Get hands-on with 1400+ tech skills courses.