+ 2

What's the difference between truth or false and truthy or falsey?

It is in reference to Ruby.

21st Mar 2017, 5:15 PM
Aryan Sinha
Aryan Sinha - avatar
2 Answers
+ 9
the difference is like, our perception of reality maaan...
21st Mar 2017, 7:00 PM
Ahri Fox
Ahri Fox - avatar
+ 2
Falsey are things that the language considers equal to FALSE. Typical candidates are 0, the empty string, the empty list, null and things like that. The exact list depends on the language. Everything else is considered equal to TRUE. So truthy.
23rd Mar 2017, 6:11 AM
1of3 - avatar