Re:JavaScript: what is "this"?
by papercrane on Monday March 22, 2010 @10:00AM
(#1210302)
Since the comparison happens before var is declared, it will always evaluate to 'true'. I believe the author was thinking about something like so:
This still evaluates to true, but I believe it has to do with the rules of shadowing. If you change the declaration to 'var name="bob";' it will return false.
[ Parent
| on HN ]
There are no comments on this comment yet.