{"ScriptPreparationCode":"var arr = [];\r\nfor (var i = 0; i \u003C 12345; i\u002B\u002B) {\r\n arr[i] = 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 sumForEach = 0,\r\n sumReduce = 0,\r\n sumMap = 0,\r\n sumFilter = 0,\r\n sumFor = 0;","TestCases":[{"Name":"forEach","Code":"arr.forEach(item =\u003E sumForEach \u002B= someFn(item)); return sumForEach;","IsDeferred":false},{"Name":"reduce","Code":"return arr.reduce((lastValue, item) =\u003E {\r\n return lastValue \u002B= someFn(item);\r\n}, 0);","IsDeferred":false},{"Name":"map","Code":"arr.map(item =\u003E (sumMap \u002B= someFn(item))); return sumMap;","IsDeferred":false},{"Name":"filter","Code":"arr.filter(item =\u003E (sumFilter \u002B= someFn(item))); return sumFilter;","IsDeferred":false},{"Name":"for","Code":"for (var j = 0; j \u003C arr.length; j\u002B\u002B) {\r\n sumFor \u002B= arr[j];\r\n}\r\nreturn sumFor;","IsDeferred":false}]}