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

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
Khuching
Khuching
1 year ago

Answer is D
10-5