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
Latest JavaScript Developer I Practice Questions with 144 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Answer is D
10-5