-
-
Save bernar83/3198565d236804817a0ada145777b9d6 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 sayName() { | |
console.log(this.name); | |
} | |
var obj = { | |
name: "Adrian", | |
sayName: sayName | |
}; | |
obj.sayName(); // "Adrian" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment