Skip to content

Instantly share code, notes, and snippets.

@JunPyoL22
Created March 8, 2018 14:08
Show Gist options
  • Save JunPyoL22/19f90d434258e1f1ac1f1bea0d70af1a to your computer and use it in GitHub Desktop.
Save JunPyoL22/19f90d434258e1f1ac1f1bea0d70af1a to your computer and use it in GitHub Desktop.
var methodInvoke = {
des : "calling function owned by object",
mean : function() {
console.log(this===methodInvoke);
console.log('method invocation is a ' + this.des);
}
}
methodInvoke.mean(); // >> true, method invocation is a calling function owned by object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment