{"ScriptPreparationCode":"var arr = new Array(1000000).fill(0).map((x, i) =\u003E i \u002B 10);\r\nfunction sumFn(acc, x) { return acc \u002B x};","TestCases":[{"Name":"for of","Code":"let sum = 0;\r\nfor (let x of arr) sum \u002B= x;","IsDeferred":false},{"Name":"forEach","Code":"let sum = 0;\r\narr.forEach(x =\u003E { sum \u002B= x })","IsDeferred":false},{"Name":"for","Code":"let sum = 0;\r\nfor(let i = 0; i \u003C arr.length; i\u002B\u002B) sum \u002B= arr[i];","IsDeferred":false},{"Name":"reduce","Code":"const sum = arr.reduce(sumFn, 0)","IsDeferred":false}]}