Anyone explain this code and output. See image. (Ruby) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
22nd Nov 2017, 4:41 PM
Uttam
Uttam - avatar
1 Answer
+ 2
TrueTrueTrue is the correct answer. All values are truthy in Ruby other than false and nil. The question itself seems to be incorrect and should be reported as such so it can be fixed.
22nd Nov 2017, 7:32 PM
ChaoticDawg
ChaoticDawg - avatar