9 responses to “Go home, JavaScript, you are drunk”

Yeah that up there, that is some weird behavior, I agree. I (perhaps naively) wonder if it might have something to do with how Javascript is one of those that uses defaults heavily to avoid ever having to deal with undefined values.

That said, there’s no denying that JavaScript is fantastically useful, not to mention ubiquitous. The best place to start is probably Doug Crockford’s little book JavaScript: The Good Parts [amazon.com, amazon.co.uk], which is only 154 pages long including the appendices, yet tells you all you need to know and — crucially — omits much that you are better off not knowing.