What array is obtained when executing the following code?
const arr = [3, 1, 4]; arr.sort();
[4, 3, 1]
[1, 4, 3]
[1, 3, 4]
[3, 1, 4]