Last active
January 15, 2022 17:29
-
-
Save triptych/3a3a3f4c6b75c4c542dd74d7fb589f47 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
class Animal { | |
constructor(name, gender) { | |
this.name = name; | |
this.gender = gender; | |
} | |
get label(){ | |
return `${this.name} - ${this.gender}` | |
} | |
} | |
export {Animal} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment