An update by @deadlyicon on the previous post.

That must be some good shit @cramforce was smoking when he found this one.

@pbakaus points out that Number.MAX_VALUE is close to infinity, but not too close.

@tlrobinson of 280 North, Cappuccino, Narwhal and CommonJS points out some lovely IE behavior in this great blog post. WTFIE should really be a blog of its own.

This is a fun one with type coercion. It comes from John Resig’s explanation here:

http://news.ycombinator.com/item?id=1154338

More fun with implicit .toString() calls and also String instantiation

@jaffathecake has some more fun with IE. As we do.

@filmaj says, “I think it’s because object equality implicitly calls toString(), and in IE most native DOM objects return just ‘[object]’ in toString(), whereas standard browser return something like ‘[object ClassName]’, which is probably why WebKit doesn’t do the same thing.”

Fuckin IE, eh.

Interesting how IE and WebKit treat this differently than Firefox and Opera. Some sort of pre-compilation going on? Who knows. Thanks @jeronevw!

When going through the result of Google’s closure compiler, I found that it had compressed 1000 to 1E3 - brilliant! - @rem

Contact brianleroux if you are interested in contributing something funny or unintuitive about the JavaScript language.