ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 105 - Certified JavaScript Developer I discussion

Report
Export

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
Answers
A.
cat.fullName
B.
cat.fullName()
Answers
B.
cat.fullName()
C.
cat.get.fullName
Answers
C.
cat.get.fullName
D.
cat.function.fullName()
Answers
D.
cat.function.fullName()
Suggested answer: A
asked 23/09/2024
Damir Stojsic
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first