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