ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 215 - Certified JavaScript Developer I discussion

Report
Export

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

What is the value of result after the code executes?

A.
100
Answers
A.
100
B.
undefined
Answers
B.
undefined
C.
null
Answers
C.
null
D.
70
Answers
D.
70
Suggested answer: A
asked 23/09/2024
Bert Pubben
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first