In Ruby, to access elements, bracket notation is used with the index of the element. fruits = ["banana", "mango", "pineapple"] fruits[0] # => "banana" fruits[1] # => "mango" Bracket notation can be used to update the elements as well. For example; f...
muhambiphares.hashnode.dev2 min read
No responses yet.