{"ScriptPreparationCode":null,"TestCases":[{"Name":"for","Code":"const arr = [1,2,3,4,5,6,7,8,9,10];\r\nfor (var i = 0; i \u003C arr.length; i\u002B\u002B){\r\n\tvar number = arr[i];\r\n}","IsDeferred":false},{"Name":"for of","Code":"const arr = [1,2,3,4,5,6,7,8,9,10];\r\nfor (var n of arr){\r\n var number = n;\r\n}","IsDeferred":false},{"Name":"for in","Code":"const arr = [1,2,3,4,5,6,7,8,9,10];\r\nfor (var i in arr){\r\n\tvar number = arr[i];\r\n}","IsDeferred":false},{"Name":"forEach","Code":"const arr = [1,2,3,4,5,6,7,8,9,10];\r\narr.forEach(n =\u003E {\r\n var number = n;\r\n});","IsDeferred":false},{"Name":"for 2","Code":"const arr = [1,2,3,4,5,6,7,8,9,10];\r\nfor (var i = 0, n = arr.length; i \u003C n; i\u002B\u002B){\r\n\tvar number = arr[i];\r\n}","IsDeferred":false},{"Name":"while with shift","Code":"const arr = [1,2,3,4,5,6,7,8,9,10];\r\nwhile(arr.length) {\r\n\tvar number = arr.shift();\r\n}","IsDeferred":false},{"Name":"while","Code":"const arr = [1,2,3,4,5,6,7,8,9,10];\r\nvar i = 0;\r\nvar n = arr.length;\r\nwhile(i \u003C n) {\r\n\tvar number = arr[i];\r\n \t\u002B\u002Bi;\r\n}","IsDeferred":false},{"Name":"while with length reduction","Code":"const arr = [1,2,3,4,5,6,7,8,9,10];\r\nvar len = arr.length;\r\nwhile (len--) {\r\n var number = arr[len];\r\n}","IsDeferred":false},{"Name":"for reverse","Code":"const arr = [1,2,3,4,5,6,7,8,9,10];\r\nfor (var i = arr.length; i \u003E= 0; --i){\r\n\tvar number = arr[i];\r\n}","IsDeferred":false}]}