Exam4Training

What is the value of result when code executes?

Refer to the code below:

function changeValue(param) {

Param =5;

}

Let a =10;

Let b =5;

changeValue(b);

Const result = a+ “ – ”+ b;

What is the value of result when code executes?
A . 10 -10
B. 5 -5
C. 5 – 10
D. 10 – 5

Answer: A

Exit mobile version