+ 2
Where we can use truthy and falsey?
3 odpowiedzi
+ 2
Anywhere that the result is binary. 1/0, true/false, good/evil, yes/no, etc...
+ 1
here's an in-depth explanation, with some codes:
https://gist.github.com/jfarmer/2647362
0
wherever the expected answer is a boolean value(ie true or false).