Arrays in Ruby are ordered, integer-indexed collections of any object type. They can hold numbers, strings, or other arrays.
array.push(element)
– Add to endarray.pop
– Remove last elementarray.shift
– Remove first elementarray.unshift(element)
– Add to beginningarray.include?(value)
– Check if value exists