Last active
July 16, 2019 18:18
-
-
Save ahmarsuhail/47ad519fd38713ad922f2e2d5bb5f963 to your computer and use it in GitHub Desktop.
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
const printNameOutsideOfObject = function() { | |
console.log(this.name); | |
} | |
printNameOutsideOfObject(); //The "this" here refers to the global window object, and not the user object. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment