Created
July 8, 2020 03:46
-
-
Save gpDA/c2a15feb19ee9adc21e0e417413df202 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, age, gender, interests) { | |
| // property and method definitions | |
| this.name = { | |
| 'first': first, | |
| 'last' : last | |
| }; | |
| this.age = age; | |
| this.gender = gender; | |
| //...see link in summary above for full definition | |
| } | |
| let person1 = new Person('Bob', 'Smith', 32, 'male', ['music', 'skiing']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment