Created
January 10, 2019 00:18
-
-
Save imskojs/000bb5f2e55519b33a89fe2f3661ece7 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 randomFunc () { | |
var msg = 'How can a function have a property?'; | |
return msg; | |
} | |
var x = randomFunc.prototype.constructor | |
// Expected undefined got 'randomFunc' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment