“To strive, to seek, to find, and not to yield.”.each_char do |ch|
puts “Who’s talking about yield?”
puts “That topic’s for a later date!”
What does the above code snippet return?
Can someone explain to me why it would return
“To strive, to seek, to find, and not to yield.” instead of nil?
since in the body of the method, it doesn’t really have “ch”, and for puts statement, the returned value is nil.
Thanks in advance!