JS-Dev-101 practice question 10 of 25

Refer to the following object: 01 const cat = { 02 firstName: 'Fancy', 03 lastName: 'Whiskers', 04 get fullName(){ 05 return this.firstName + ' ' +…

Choose your answer, then check it against the explanation.

Refer to the following object: 01 const cat = { 02 firstName: 'Fancy', 03 lastName: 'Whiskers', 04 get fullName(){ 05 return this.firstName + ' ' + this.lastName; 06 } 07 }; How can a developer access the fullName property for cat?
Answer options
Question 10 of 25

Keep practicing

Take the free JS-Dev-101 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other JS-Dev-101 practice questions

Scroll to Top