Did you know that numbers can be truthy or falsy, while text is always truthy?
@wilto explains all the JavaScript:https://abookapart.com/products/javascript-for-web-designers …
-
-
I mean, so’s `!true`, when you get right down to it.
-
I don't get what you're trying to say, could you elaborate?
@abookapart - 2 more replies
New conversation -
-
-
nah, not a string anymore at that point due to type coercion
@abookapart@wilto -
alert(typeof !!'') // boolean
@abookapart@wilto - 5 more replies
New conversation -
-
-
seriously! That is not a good way to sell a JavaScript book. ""==false still gets me sometimes.
-
_Text_ is always truthy! Don’t worry; empty strings are covered.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.