Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 36 Topic 4 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 36 Topic 4 Discussion

JavaScript-Developer-I Exam Topic 4 Question 36 Discussion:
Question #: 36
Topic #: 4

A developer copied a JavaScript object:

01 function Person() {

02 this.firstName = " John " ;

03 this.lastName = " Doe " ;

04 this.name = () = > `${this.firstName},${this.lastName}`;

05 }

06

07 const john = new Person();

08 const dan = Object.assign({}, john);

09 dan.firstName = ' Dan ' ;

How does the developer access dan ' s firstName, lastName?


A.

dan.firstName() + dan.lastName()


B.

dan.name()


C.

dan.name


D.

dan.firstName + dan.lastName


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.