In a browser, window is the object for the current tab. It is the global object, so alert("Saved") and window.alert("Saved") call the same function. window.document is the page. window.location is the URL.
Some members are properties you read: innerWidth, closed, location.href. Others are methods you call: alert(), setTimeout(), open(). setTimeout returns a number in the browser. Pass that number to clearTimeout if you need to cancel the timer.
In a browser, window is the global object for the current tab. alert(), setTimeout(), and the page URL all hang off it. window.document is the page. window itself is the tab.
Both call the same function. alert is a property of window, so a browser script can omit window. Writing window.alert("Saved") makes the object explicit in a tutorial.
A property is a value you read: window.innerWidth, window.closed, window.location.href. A method is a function you call: window.alert("Saved"), window.setTimeout(fn, 1000). Adding parentheses to innerWidth throws.
No. In the browser it returns a number, the timer id. Pass that id to clearTimeout to cancel the call. The function you scheduled runs later, unless you cancel it first.
Practice the examples here, then open the Window Methods index for alert(), setTimeout(), and open(). The Window Properties index lists innerWidth, location, document, and the rest.