{"ScriptPreparationCode":"var array = Array.from({length: 10}, (_, index) =\u003E index);","TestCases":[{"Name":"for","Code":"var sum = 0\r\nfor (var i = 0; i \u003C array.length; i\u002B\u002B) {\r\n sum \u002B= array[i];\r\n}","IsDeferred":false},{"Name":"forEach","Code":"var sum = 0\r\narray.forEach(function(item) {\r\n sum \u002B= item;\r\n});","IsDeferred":false},{"Name":"for-of","Code":"var sum = 0\r\nfor (var item of array) {\r\n sum \u002B= item;\r\n}","IsDeferred":false},{"Name":"for-reverse","Code":"var sum = 0\r\nfor (var i = array.length; i--;) {\r\n sum \u002B= array[i];\r\n}","IsDeferred":false},{"Name":"for with cached length","Code":"var sum = 0\r\nfor (var i = 0, len = array.length; i \u003C len; i\u002B\u002B) {\r\n sum \u002B= array[i];\r\n}","IsDeferred":false}]}