{"ScriptPreparationCode":"var digits = \u002706325112733\u0027;","TestCases":[{"Name":"for","Code":"let sum = 0;\r\nvar digitsLength = digits.length;\r\n\r\nfor (let i = 0; i \u003C digitsLength; \u002B\u002Bi) {\r\n var digit = \u002Bdigits[i];\r\n sum \u002B= digit * (digitsLength \u002B 1 - i);\r\n}\r\n\r\nvar lastSumChecker = sum % 11;\r\nvar checker = lastSumChecker \u003C 2 ? 0 : 11 - lastSumChecker;\r\n\r\nreturn checker;","IsDeferred":false},{"Name":"split","Code":"let sum = 0;\r\nvar digitsLength = digits.length;\r\n\r\nsum = digits.split(\u0027\u0027).reduce((prev, curr, index) =\u003E {\r\n var current = \u002Bcurr;\r\n return prev \u002B current * (digitsLength \u002B 1 - index);\r\n}, 0);\r\n\r\nvar lastSumChecker = sum % 11;\r\nvar checker = lastSumChecker \u003C 2 ? 0 : 11 - lastSumChecker;\r\n\r\nreturn checker;","IsDeferred":false}]}