Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialA X
12,842 PointsWhat is a window object?
Just finished watching Andrew's video on the Window object, but he never fully explained what exactly this window object refers to. Is it simply the window that we're viewing the site in or something more abstract?
Additionally, what's the point(s) of looking at your code inside the window? What's the point of manipulating code inside the window? How does the window differ from the console, as both appear to show your code and allow you to manipulate code on the fly?
Thanks!
1 Answer
Matt Milburn
20,786 PointsHi nekilof,
Better known as THE window
object, it represents a window containing a DOM document. All web pages exist in a window
which renders its DOM document to the page.
MDN has a great source of information on the window
object if you are interested. MDN window article