Notifications
Clear all
Topic starter
Refer to the following object:
const cat ={
firstName: ‘Fancy’,
lastName: ‘ Whiskers’,
Get fullName() {
return this.firstName + ‘ ‘ + this.lastName;
}
};
How can a developer access the fullName property for cat?
- A . cat.fullName
B. cat.fullName()
C. cat.get.fullName
D. cat.function.fullName()
Suggested Answer: A
Posted : 02/02/2023 1:39 pm