Created
October 14, 2018 07:15
-
-
Save tcorral/b5de0a318a09cda27d2830a813e5e8a6 to your computer and use it in GitHub Desktop.
Customer Hungarian Notation
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 Customer = function (config) { | |
this.sFirstName = config.firstName || ''; | |
this.sLastName = config.lastName || ''; | |
this.aAddressLines = (config.addressLines || []).concat(); | |
this.aEmployees = (config.employees || []).concat(); | |
this.sFullName = this._getFullName(); | |
}; | |
Customer.prototype._getFullName = function () { | |
return this.sFirstName + this.sLastName; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment