Last active
May 25, 2018 19:00
-
-
Save macklinu/00353d30ddb48b16c3b0bd536549fedd 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
var person = { | |
name: "Ben", | |
print: function() { | |
var self = this; | |
console.log(this.name); | |
(function() { | |
console.log(this.name); | |
console.log(self.name); | |
})(); | |
} | |
}; | |
person.print(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment