What is the value of result after the code executes?

Refer to the code below:

Function changeValue(obj) {

Obj.value = obj.value/2;

}

Const objA = (value: 10);

Const objB = objA;

changeValue(objB);

Const result = objA.value;

What is the value of result after the code executes?

A. 10

B. Nan

C. 5

D. Undefined

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments