Refer to the code below:
function changeValue(param) {
param = 5;
}
let a = 10;
let b = a;
changeValue(b); // Call by Value
const result = a + ' - ' + b;
console.log(result);
What is the value of result when the code executes?
Refer to the code below:
function changeValue(param) {
param = 5;
}
let a = 10;
let b = a;
changeValue(b); // Call by Value
const result = a + ' - ' + b;
console.log(result);