Beginner
TypeScript
Q39 / 100
Which loop syntax iterates over the values of an array in TypeScript?
Correct! Well done.
Incorrect.
The correct answer is B) for (let item of arr)
B
Correct Answer
for (let item of arr)
Explanation
"for...of" iterates over the values of an iterable like an array, while "for...in" iterates over keys/indices.
Progress
39/100