Created
November 24, 2018 23:05
-
-
Save manekinekko/330091c357e903be3d35b770091b7050 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
console.log(luke.constructor.toString()); | |
/*//=> | |
"function Jedi(){ | |
this.useForce = function(){ | |
return 'I am the Instance'; | |
}; | |
}" | |
*/ | |
console.log(luke.constructor.prototype.useForce.toString()); | |
/*//=> | |
"function (){ | |
return 'I am the Prototype'; | |
}" | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment