Array Each « Array « Ruby






1.If you have a collection, such as an array or a range, you can also use the Ruby each iterator to create a loop.
2.each method goes through each element of the array and passes it as a parameter to the code block you supply.
3.Identify the Array and Hash of Customers