What is an array

In Ruby, an array is a collection of values stored as a single variable. For example, ["apple","mango","banana"] is an array of strings. It is stored as a variable just like any other data type.

Get hands-on with 1200+ tech skills courses.