Closed Nalini1998 closed 1 year ago
What is incorrect about the code block?
for (let i = 0, i < myArray.length, i++) { console.log(myArray[i]); };
A. let is not needed for the start condition.
B. i++ should be i = i + 1.
C. The for loop expressions are out of order.
D. The condition of the loop should be separated by semicolons, not commas.
I chose D. The condition of the loop should be separated by semicolons, not commas.
What is incorrect about the code block?
A. let is not needed for the start condition.
B. i++ should be i = i + 1.
C. The for loop expressions are out of order.
D. The condition of the loop should be separated by semicolons, not commas.