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