Exam4Training

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

Exit mobile version