Ruby - Arrays
Which method would you use to find out how many elements are in an array in Ruby?
length method returns the number of elements in an array.flatten merges nested arrays, include? checks presence, and push adds elements.length = Count elements [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions