I wonder why one and the same entity has a different representation inside browser window
object called in console:
- If we call just
window
inside browser console we'll have a whole browser info. Where thedocument
will be represented as object-liked entity included various props and functions (including DOM). - If we call
document
directly bywindow.document
command we'll have just only the DOM representation of it.
So, why does it happen? I really cannot figure out.
Thanks.