{"ScriptPreparationCode":"var all_digits = [];\r\nfor(let i=0; i\u003C5_000; i\u002B\u002B) {\r\n all_digits.push(Math.floor(Number.MAX_SAFE_INTEGER * Math.random()).toString())\r\n}\r\n","TestCases":[{"Name":"for loop","Code":"for(let digits of all_digits) {\r\n let sum = 0;\r\n for (const digit of digits) {\r\n sum \u002B= \u002Bdigit;\r\n }\r\n}","IsDeferred":false},{"Name":"Array.prototype.reduce.call","Code":"for(let digits of all_digits) {\r\n\tlet sum = 0;\r\n\tsum = Array.prototype.reduce.call(digits, (prev, curr) =\u003E prev \u002B \u002Bcurr, 0);\r\n}","IsDeferred":false},{"Name":"Array.prototype.reduce.apply","Code":"for(let digits of all_digits) {\r\n\tlet sum = 0;\r\n\tsum = Array.prototype.reduce.apply(digits, [(prev, curr) =\u003E prev \u002B \u002Bcurr, 0]);\r\n}","IsDeferred":false},{"Name":"Array.prototype.forEach","Code":"for(let digits of all_digits) {\r\n\tlet sum = 0;\r\n\tArray.prototype.forEach.apply(digits, [(i) =\u003E sum \u002B= \u002Bi]);\r\n}","IsDeferred":false},{"Name":".split.reduce","Code":"for(let digits of all_digits) {\r\n\tlet sum = 0;\r\n\tsum = digits.split(\u0027\u0027).reduce((prev, curr) =\u003E prev \u002B \u002Bcurr, 0);\r\n}","IsDeferred":false},{"Name":".split.forEach","Code":"for(let digits of all_digits) {\r\n\tlet sum = 0;\r\n\tdigits.split(\u0027\u0027).forEach((i) =\u003E sum \u002B= \u002Bi);\r\n}","IsDeferred":false}]}