{"ScriptPreparationCode":"var array = new Array(100);\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n array[i] = i * i;\r\n}","TestCases":[{"Name":"for","Code":"let sum = 0\r\nfor (let i = 0, l = array.length; i \u003C l; i\u002B\u002B) {\r\n sum \u002B= array[i];\r\n}","IsDeferred":false},{"Name":"foreach","Code":"let sum = 0;\r\narray.forEach(function(i) {\r\n sum \u002B= array[i];\r\n});","IsDeferred":false},{"Name":"for in","Code":"let sum = 0;\r\nfor (var i in array) {\r\n sum \u002B= array[i];\r\n}","IsDeferred":false},{"Name":"for..of","Code":"let sum = 0;\r\nfor (var i of array) {\r\n sum \u002B= array[i];\r\n}","IsDeferred":false},{"Name":"reduce","Code":"array.reduce((a, b) =\u003E a \u002B b, 0);","IsDeferred":false}]}