Created
          July 26, 2018 20:05 
        
      - 
      
 - 
        
Save renderorange/0b187bd9b26c8fb1e67bf7b5d6b420f3 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
    
  
  
    
  | function Person( first, last ) { | |
| this.firstName = first; | |
| this.lastName = last; | |
| } | |
| Person.prototype.getInitials = function() { | |
| let firstInitial = this.firstName.substring( 0, 1 ).toUpperCase(); | |
| let lastInitial = this.lastName.substring( 0 , 1 ).toUpperCase(); | |
| return firstInitial + lastInitial; | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment