I use http://polliwog.sourceforge.net open source, runs on Java. Not suitable for large websites since it provides a LOT of information about your site.
HN user
slurpme
20 karma
Posts2
Comments5
Ask HN: what software do you use for analyzing apache logs? 18 years ago
Javascript null surprise 18 years ago
Yes I think you are right about that, too early in the morning for me...
Makes me wonder what the rules are for coercion though, that is does it pick null to coerce or 0?
Javascript null surprise 18 years ago
I know, I mentioned it as the new object because it's one of the few situations I know of where you might use a newline after the return keyword.
I understand what you mean, in this case though it would be helpful if the interpreter detects the statement as being not reachable since it's after the return.
Javascript null surprise 18 years ago
But isn't the context a Boolean expression, so the 0 would be converted to a Boolean as well?
Javascript null surprise 18 years ago
How about this surprise which caught me out a couple of days ago, try:
function hello () {
return
{
value : 10
};
}window.alert (hello ().value);
It burps in FF and IE...