One *POSSIBLY* right answer might be:
for ( var i = 0; i < data.length; ++i )
mynum = data[i];
... and do something with mynum here ...
But why you would do a loop from 0 to 21 when there are only 6 elements in the array...makes no sense at all.