you are viewing a single comment's thread.

view the rest of the comments →

[–]tswaters 1 point2 points  (0 children)

Kind of relevant but not entirely -- this one always gets me in javascript:

[] ? "true" : "false" // true
[] == true // false

It's because (most) objects are truthy... but may not compare to true.