Technology Quote by Eric Freeman
““When you declare any kind of global variable or define a global function, it is stored as a property in the window object. So””
About This Quote
Source Book: Head First Java by Kathy Sierra and Bert Bates, 2003
Global variables become properties of the global window object, making them accessible everywhere in a browser environment.
In simple terms: Globals are stored on window, visible everywhere.
Avoid polluting the global scope.
Themes
Mood
Type
When to use this quote
- web app development
- debugging
- module design
Key Concepts
Questions to Reflect On
- How does using modules reduce global conflicts?
- When should a global be justified?
Globals can cause naming collisions and hard‑to‑track bugs.