Q: 11
Code:
01 let array = [1, 2, 3, 4, 4, 5, 4, 4];
02 for (let i = 0; i < array.length; i++) {
03 if (array[i] === 4) {
04
array.splice(i, 1);
05
i--;
06 }
07 }
What is the value of array after execution?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.