window object is a global object which has various object to access various functionality of browser. below diagram gives an overview of window object.
In this article, we will look at the properties of the
window.document. if you do inspect and go to console and type window.document. Browser…