JS-Dev-101 practice question 21 of 25

Refer to the code below: 01 function changeValue(param) { 02 param = 5; 03 } 04 let a = 10; 05 let b = a; 06 07 changeValue(b); 08 const result = a +…

Choose your answer, then check it against the explanation.

Refer to the code below: 01 function changeValue(param) { 02 param = 5; 03 } 04 let a = 10; 05 let b = a; 06 07 changeValue(b); 08 const result = a + ' - ' + b; What is the value of result when the code executes?
Answer options
Question 21 of 25

Keep practicing

Take the free JS-Dev-101 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other JS-Dev-101 practice questions

Scroll to Top