Za: http://frontendcollisionblog.com/javascript/2015/03/24/tricks-of-the-javascript-for-loop.html
//1 var i = 0; var len = arr.length; var arr = [1,2,3,4,5]; for(; i < len; i++) { console.log(arr[i]); } //2 for(var arr = [1,2,3,4,5], i = 0, len = arr.length; i < len; i++) { console.log(arr[i]); }