Created
December 25, 2017 19:15
-
-
Save jacky810124/ab9e52215e2b0c8971bfb7966dc3083b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In web browsers, the window object is also the global object: | |
console.log(this === window); // true | |
a = 37; | |
console.log(window.a); // 37 | |
this.b = "MDN"; | |
console.log(window.b) // "MDN" | |
console.log(b) // "MDN" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment