Warmup
Warmup
Predict the output of the following code:
function abc(arr){
for(var i = 0; i < arr.length; i++){
console.log(i);
}
}
abc([2,4,6,8,10]);
function abc(arr){
for(var i = 0; i < arr.length; i++){
console.log(i);
}
}
abc([2,4,6,8,10]);
Choose the correct answer:
-
2 4 6 8 10
-
1 2 3 4 5
-
0 1 2 3 4
-
None of the above
* Failure in every first attempt will result in a deduction on your total points.