Ruby - Enumerable and Collection Processing
What is the output of the following Ruby code?
words = ["apple", "banana", "cherry", "date"]
result = words.find { |w| w.length > 5 }
puts resultWhat is the output of the following Ruby code?
words = ["apple", "banana", "cherry", "date"]
result = words.find { |w| w.length > 5 }
puts result15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions