{"ScriptPreparationCode":"var digits = Math.floor(Number.MAX_SAFE_INTEGER * Math.random()).toString() \r\n\t\u002B Math.floor(Number.MAX_SAFE_INTEGER * Math.random()).toString();","TestCases":[{"Name":"for loop","Code":"\r\n let sum = 0;\r\n for (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":"\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":"\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":"\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":"\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":"\r\n\tlet sum = 0;\r\n\tdigits.split(\u0027\u0027).forEach((i) =\u003E sum \u002B= \u002Bi);\r\n","IsDeferred":false}]}