Ruby - Arrays
What does the
length method do when called on an array in Ruby?length method do when called on an array in Ruby?lengthlength method counts how many items are inside an array.include? checks for presence, flatten merges nested arrays, so they do different things.length = count items [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions