http://javascriptweblog.wordpress.com/2010/08/16/understanding-undefined-and-preventing-referenceerrors/

On Feb 4, 4:16 pm, Jason Persampieri <[email protected]> wrote:
> On Fri, Feb 4, 2011 at 4:07 PM, Michael Geary <[email protected]> wrote:
> > The first two cases are identical to each other, because window === this
> > when your code runs in the global scope. And as you noted, it is not an
> > error to attempt to dereference a nonexistent property of an object - you
> > simply get the undefined value.
>
> Just to be clear, when running in the Firebug console (which is how I
> imagined the OP was running his code), window !== this.
>
> _jason

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to