For x in JavaScript
iterative.ly
iterative.ly
This will list the properties of the map (0, 1, 2):
var a = ['a', 'b', 'c'];
for( i in a ) { console.log( i ); }
This will list the values of those properties:
var a = ['a', 'b', 'c'];
for( i in a ) { console.log( a[i] ); }