Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 13 Topic 2 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 13 Topic 2 Discussion

JavaScript-Developer-I Exam Topic 2 Question 13 Discussion:
Question #: 13
Topic #: 2

Refer to the code below:

const car = {

price:100,

getPrice:function(){

return this.price;

}

};

const customCar = Object.create(car);

customCar.price = 70;

delete customCar.price;const result = customCar.getPrice();

Whatis the value of result after the code executes?


A.

100


B.

undefined


C.

null


D.

70


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.