1 2 3 4 5 6 7 8
array = ['foo'] hash = {'foo' => 'bar'} p array[0] p array[42] p hash['foo'] p hash['ruby']
1 2 3 4
"foo" nil "bar" nil