Refer to the following object: const cat ={ firstName: ‘Fancy’, lastName: ‘ Whiskers’, Get fullName() { return this.

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()

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.