Window is a function, as you can see. This is a constructor for windows (but you cannot create new windows directly using the constructor, you usually use the Window.open function). Window.prototype thus contains methods that you can call in the window).
Window - a global variable containing an instance of Window is a browser window containing your document (in fact, this is not a "window", but a tab in modern browsers).
You can check that
window instanceof Window
is an
true
source share