Editing JavaScript/Notes/Scope
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 131: | Line 131: | ||
From [https://groups.google.com/forum/#!topic/jsmentors/JnHM3Pvesp8 global object property access]. | From [https://groups.google.com/forum/#!topic/jsmentors/JnHM3Pvesp8 global object property access]. | ||
<blockquote> | <blockquote> | ||
I am currently seeing some weird behavior with the global object: | |||
<source lang="javascript"> | <source lang="javascript"> | ||
console.log(window.foo); // this returns undefined | console.log(window.foo); // this returns undefined |