{"ScriptPreparationCode":"function randomDigits() {\r\n\treturn Math.floor(Math.random() * (2**64)).toString();\r\n}\r\n\r\nString.prototype.reduce = Array.prototype.reduce","TestCases":[{"Name":"for loop","Code":"let digits = randomDigits();\r\nlet sum = 0;\r\nfor (let i = 0; i \u003C digits.length; \u002B\u002Bi) {\r\n sum \u002B= \u002Bdigits[i];\r\n}\r\n","IsDeferred":false},{"Name":"Array.prototype.reduce.call","Code":"let digits = randomDigits();\r\nlet sum = 0;\r\nsum = Array.prototype.reduce.call(digits, (prev, curr) =\u003E prev \u002B \u002Bcurr, 0);\r\n","IsDeferred":false},{"Name":"String.prototype.reduce","Code":"let digits = randomDigits();\r\nlet sum = 0;\r\nsum = digits.reduce((prev, curr) =\u003E prev \u002B \u002Bcurr, 0);\r\n","IsDeferred":false},{"Name":"Array.prototype.forEach","Code":"let digits = randomDigits();\r\nlet sum = 0;\r\nArray.prototype.forEach.apply(digits, [(i) =\u003E sum \u002B= \u002Bi]);\r\n","IsDeferred":false},{"Name":".split.reduce","Code":"let digits = randomDigits();\r\nlet sum = 0;\r\nsum = digits.split(\u0027\u0027).reduce((prev, curr) =\u003E prev \u002B \u002Bcurr, 0);\r\n","IsDeferred":false},{"Name":".split.forEach","Code":"let digits = randomDigits();\r\nlet sum = 0;\r\ndigits.split(\u0027\u0027).forEach((i) =\u003E sum \u002B= \u002Bi);\r\n","IsDeferred":false}]}