+ 2

Where we can use truthy and falsey?

15th Feb 2018, 3:28 PM
Manasa Pirati
Manasa Pirati - avatar
3 Answers
+ 2
Anywhere that the result is binary. 1/0, true/false, good/evil, yes/no, etc...
15th Feb 2018, 3:33 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
here's an in-depth explanation, with some codes: https://gist.github.com/jfarmer/2647362
15th Feb 2018, 7:20 PM
bedawang
bedawang - avatar
0
wherever the expected answer is a boolean value(ie true or false).
17th Feb 2018, 7:26 PM
IDONGESIT FRANCIS UKUT