What will be the value of arr[2] after executing the following code snippet?
let arr = [1, 2, 3, 4, 5];
arr.splice(2, 1);
What will be the value of arr[2] after executing the following code snippet?
let arr = [1, 2, 3, 4, 5];
arr.splice(2, 1);