I can\'t seem to find a definitive answer on this and I want to make sure I understand this to the \"n\'th level\" :-)
a = { \"a\" => \"Hello\", \"b\" => \"Worl
We have a several ways to find out how many elements in an array like .length, .count and .size. However, It's better to use array.size rather than array.count. Because .size is better in performance.
.length
.count
.size
array.size
array.count