Skip to content

Instantly share code, notes, and snippets.

@JunPyoL22
Created March 8, 2018 14:25
Show Gist options
  • Save JunPyoL22/f72ec1f77d4517fd24469796ad874cd5 to your computer and use it in GitHub Desktop.
Save JunPyoL22/f72ec1f77d4517fd24469796ad874cd5 to your computer and use it in GitHub Desktop.
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