//Global scope
//The implicit property of the global object
var foo1 = "abc";
console.log(this.foo1 == window.foo1); console.log(foo1); console.log(this.foo1); console.log(window.foo1); //true abc abc abc
//The implicit property of the global object
foo2 = "def";
console.log(this.foo2 == window.foo2); console.log(foo2); console.log(this.foo2); console.log(window.foo2); //true def def def
//The explicit property of the global object
this.foo3 = "gh";
console.log(this.foo3 == window.foo3); console.log(foo3); console.log(this.foo3); console.log(window.foo3); //true gh gh gh
2.