Created
March 8, 2018 14:25
-
-
Save JunPyoL22/f72ec1f77d4517fd24469796ad874cd5 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 methodInvoke = { | |
des : "calling function owned by object", | |
mean : function() { | |
console.log(this===window); | |
console.log('method invocation is a ' + this.des); | |
} | |
} | |
var seperated_method = methodInvoke.mean | |
seperated_method() // >> true, 'method invocation is a undefined' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment