//01 var i, max, arr = ['a', 'b', 'c']; for (i = 0; i < arr.length; i++) { console.log(arr[i]); } //-> a //-> b //-> c //02 for (i = 0, max = arr.length; i < max; i++) { console.log(arr[i]); } //-> a //-> b //-> c //03 for (i = arr.length; i--;) { console.log(arr[i]); } //-> c //-> b //-> a