showing results for - "javascript difference between window and window"
Felix
11 Nov 2019
1Window is a function, as you can see. It's the constructor for the windows (but you can't build new windows directly with the constructor, you usually use the Window.open function). Window.prototype thus holds the methods you can call on the window).
2
3window is the global variable holding an instance of Window, it represents the browser window containing your document (not really a "window" usually, rather a tab in modern browsers).
4
5You can check that
6window instanceof Window
7is true