{"ScriptPreparationCode":"\r\nvar arr = [];\r\nfor(var i = 0; i \u003C 20; i\u002B\u002B) {\r\n arr.push(i);\r\n}\r\n\r\nfunction someFn(i) {\r\n return (i * 3 * 8 / 1200 * 0.002 / 40 * 0.2);\r\n}\r\n\r\nvar sumFor = 0;\r\nvar sumForEach = 0;\r\nvar sumReduce = 0;","TestCases":[{"Name":"Test For","Code":"for(var i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n sumFor \u002B= someFn(arr[i]);\r\n}","IsDeferred":false},{"Name":"Test ForEach","Code":"arr.forEach(value =\u003E sumForEach \u002B= someFn(value))","IsDeferred":false},{"Name":"Test Reduce","Code":"sumReduce = arr.reduce((lastValue, item) =\u003E {\r\n return sumReduce \u002B= someFn(item);\r\n});","IsDeferred":false}]}