Ruby - Operators and Expressions
Why does Ruby treat only
false and nil as falsy, unlike some other languages that treat 0 or empty strings as falsy?false and nil as falsy, unlike some other languages that treat 0 or empty strings as falsy?false and nil as falsy to keep conditionals simple and predictable.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions