Skip to content

Instantly share code, notes, and snippets.

@seogi1004
Created November 27, 2017 13:54
Show Gist options
  • Save seogi1004/19ee93d4a82a770710c39d9973e61f33 to your computer and use it in GitHub Desktop.
Save seogi1004/19ee93d4a82a770710c39d9973e61f33 to your computer and use it in GitHub Desktop.
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