push() Exercises

0/6
0 of 3 exercises0/6
Exercise 1 of 3
easy
🤔
💨

Need a hint? Click the hint button below!

Predict the Push

What will the array look like after push?

Starting array:

[
1
[0]
2
[1]
3
[2]
]
length: 3

After running this code:

1arr.push(4);

What will the array look like?