Why window object in the browser points to window object. Mozilla Website states the reason as
The point of having the window property refer to the object itself was (probably) to make it easy to refer to the global object (otherwise you'd have to do a manual
var window = this;
assignment at the top of your script).
So, my question is, how to infinitely point an object to object and how that helps to avoid doing var window = this;
window.window // returns window object
window.window.window // also returns an window