+ 5
i.e. false is falsy "false" is truthy
17th Apr 2018, 5:06 PM
Hatsy Rei
Hatsy Rei - avatar
+ 4
boolean false is falsy string "false" is truthy string "false" is not boolean false. the truth or false value of variables depend on thier type and value, the first false is boolean so its false the second false is a string so its treated as truthy
17th Apr 2018, 4:53 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 4
what that means is, only objects of type Boolean that have a value of false or nil are false. when it says that "false" outputs true it is because the object is of type string, not of type Boolean. its value is not false, but instead ['f', 'a', 'l', 's', 'e'].
17th Apr 2018, 5:01 PM
🐙evil octopus
🐙evil octopus - avatar