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