Question 1 of 5
Over an array, what is the difference between
for...of and
for...in?
Values versus names, the section heading says.
for...of hands the loop the element values, while for...in hands it the property names, which over an array arrive as strings like "0" and "1". Choose without flinching, the quick check says, and this is the flinch.
Review this lesson