-
-
Save matthieua/db56dd203784f6801009c1088452d76d 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 go() { | |
console.log("Simple function call"); | |
console.log(this === window); | |
} | |
go(); //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