What value is obtained when the following code is executed?
const arr = [1, 2, 3];
const popped = arr.pop();
const shifted = arr.shift();
console.log(popped + shifted);
What value is obtained when the following code is executed?
const arr = [1, 2, 3];
const popped = arr.pop();
const shifted = arr.shift();
console.log(popped + shifted);