For in loop


what is this for( loop
what it does


it loops over all the properties of an object.


you mean it is only used for objects


well, you could use it for arrays, but its ill advised (as you can read in the docs i posted)

well, given objects are also associative arrays in JS you should be able to use the for in loop for associative arrays


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.