What value is obtained when the following code is executed?
const arr = [1, 2, 3]; const [a, b] = arr; console.log(b);
3
undefined
2
1