JavaScript: Window object

window object

Window object:

alert("hello");     ===     window.alert("hello");
var name = "John";
console.log(name); //John
console.log(window.name); //John

Window object Properties:

Window object Methods: