What is the use of window object?

What is the use of window object?

Window object is a global object in JS which hold all the information about current browser window.
It hold all of your variables, functions and information about the environment like width and height of the screen.