Created
June 18, 2018 12:54
-
-
Save ssougnez/583d06f55334fec6dcc93d7797ba3a80 to your computer and use it in GitHub Desktop.
This file contains 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
export class Driver { | |
constructor(firstName, lastName) { | |
this._firstName = firstName; | |
this._lastName = lastName; | |
} | |
get firstName() { | |
return this._firstName; | |
} | |
get lastName() { | |
return this._lastName; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment