Once again I find myself confronted with the peculiarities of JavaScript's type coercion (as explained in the first chapter of Eloquent JavaScript). I ran into these before and it frustrated me how JavaScript would do conversions that were heavily weighted towards strings:
"5" + 1 // Returns '51' because of string concatenation …