What value is obtained by executing the following code?
let x = 1;
function increment() {
let x = 2;
return x++;
}
console.log(increment() + x);
What value is obtained by executing the following code?
let x = 1;
function increment() {
let x = 2;
return x++;
}
console.log(increment() + x);