Created
December 26, 2017 05:29
-
-
Save PavanKu/accabe6e142a4db2cee33cf8f07b553b to your computer and use it in GitHub Desktop.
Global Execution context and value of this.
This file contains hidden or 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
function foo () { | |
console.log("Simple function call"); | |
console.log(this === window); | |
} | |
foo(); //prints true on console | |
console.log(this === window) //Prints true on console. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment