Last active
December 1, 2021 14:22
-
-
Save rahgurung/ac54660a5e4522e54b93d744e39cd841 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
function doSomething() { | |
// "use strict"; // uncomment to run in strict mode | |
console.log( this.x ) | |
} | |
var x = "Hello World!"; | |
// Here the call-site of the function is global scope | |
doSomething(); // "Hello World!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment