Orientation syntax


#1

I am still confused about these following syntaxes, when do we use window.screen vs screen and window.screen.orientation.type vs window.screen.orientation?

Just want to be clear about it for once.

Thank in advance.