Join Dr. Biswajit Panja as he explains how both array and hash are used to store data in Ruby. For the creation of array, an array name is used and the data is stored. To access the elements of the array, an array name with an index is provided. In hash key -> value is used. For each value a key is provided. The value can be accessed using the key.