A for-in loop is a specialised loop used to iterate over an array. If you are only reading the contents of an array, then you should use the for-in loop to do it. The for-in loop will not allow you to edit an array unfortunately :(
The general form for a for-in loop is as follows :