Javascript WTF

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


Undefined can be defined

> var t
< undefined

> t == undefined
< true      // Ok, that makes sense

> t = "Defined"
< "Defined" // Ok...
> var t
< undefined // ... so far, so good...
> t == undefined
< false     // ... What now?