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