For ( var variable in object ) [7. Search for a friend]


UNIT 6: DATA STRUCTURES \ Lesson: Contact List \ 7. Search for a friend

I'm having difficulty understanding why the for loop necessitates creating and using a variable within its conditional brackets.

for ( var WhyDoWeCreateA"key"Here? in object )

Can somebody please explain to me why the "key" is necessary?



This post was flagged by the community and is temporarily hidden.