What value is obtained when the following code is executed?
const myArray = [1, 2, 3];
const result = myArray.pop();
console.log(result);
What value is obtained when the following code is executed?
const myArray = [1, 2, 3];
const result = myArray.pop();
console.log(result);