Friday afternoon scoping quiz

Dmitry A. Soshnikov dmitry.soshnikov at
Fri Feb 5 15:19:52 PST 2010

Hello P,

>Scope chain (f): [
>  global,
>  {foo: undefined, bar: undefined},
>  {foo: 20, test: function () {...}},
>  {activation object of 'f' context}

Sorry, scope chain of 'f' context sure will *not* contain object added by the
'with' statement (my typo), scope chain above was described for 'test' context. And for
'f' is:

Scope chain (f): [
  {foo: undefined, bar: 21},
  {activation object of 'f' context}


More information about the es-discuss mailing list