Constructor
new Person(personInfo)
Parameters:
Name | Type | Description |
---|---|---|
personInfo |
Object | Information about the person |
Members
age
Properties:
Name | Type | Description |
---|---|---|
age |
string | number | age of the person |
name
Properties:
Name | Type | Description |
---|---|---|
name |
string | name of the person |
Methods
greet() → {void}
Properties:
Name | Type | Description |
---|---|---|
greet |
function | A greeting with name and age |
Returns:
- Type
- void