0Pricing
Ruby Academy · Lesson

Arrays and Hashes

Learn how to create, modify, and access elements in arrays and hashes.

1

Arrays and Hashes

Ruby provides two main collection types: Arrays and Hashes.

In this lesson, you will learn how to create, modify, and access elements in Arrays and Hashes.

Arrays and Hashes — illustration 1

2

Defining an Array

Arrays store multiple values in an ordered list.

numbers = [1, 2, 3, 4, 5]
puts numbers

All lessons in this course

  1. Arrays and Hashes
  2. Iterating Over Collections
  3. Useful Array and Hash Methods
← Back to Ruby Academy