Exercise 1 of 3
easy
🤔
💨
Need a hint? Click the hint button below!
Remove with Splice
What will the array look like after splice?
Starting array:
[
1
[0]2
[1]3
[2]4
[3]5
[4]]
length: 5
After running this code:
1arr.splice(2, 1);
What will the array look like?