Created
November 27, 2017 13:54
-
-
Save seogi1004/19ee93d4a82a770710c39d9973e61f33 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
var Test = function() { | |
this.print= function() { | |
alert("this.print"); | |
}; | |
}; | |
Object.prototype.print= function() { | |
alert("Object.prototype.print"); | |
}; | |
Function.prototype.print = function() { | |
alert("Function.prototype.print"); | |
}; | |
Test.prototype.print= function() { | |
alert("Test.prototype.print"); | |
}; | |
Test.print = function() { | |
alert("Test.print"); | |
} | |
Test.print(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment