Javascript WTF

A site where we can all share in those little WTF moments we enjoy with Javascript


Array Coercion

[] == ![];     // true

Technically, empty array is falsey, just like a negated array. But thats not entirely obvious!