Skip to content

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” quote by Eric Freeman
Download Open image
““When you declare any kind of global variable or define a global function, it is stored as a property in the window object. So””

Eric Freeman

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.

Key Takeaway

Avoid polluting the global scope.

Themes

programming JavaScript scope best practices

Mood

cautious technical

Type

instructional technical

When to use this quote

  • web app development
  • debugging
  • module design

Key Concepts

global namespace window object property assignment

Questions to Reflect On

  • How does using modules reduce global conflicts?
  • When should a global be justified?
A Different Perspective

Globals can cause naming collisions and hard‑to‑track bugs.

2.6 out of 5 (10 ratings)

More by Eric Freeman

Explore all 90 Eric Freeman quotes

More Technology quotes

Browse all 12,247 Technology quotes