[0, 0, 0]
What will the following code snippet log in the console?
let arr = [1, 2, 3];
for (i = 0; i < arr.length; arr[i++] = 0) ;
console.log(arr);
Correct Answer:
[0, 0, 0]
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions