{"ScriptPreparationCode":"function squareDigits(num) {\r\n let result = \u0027\u0027;\r\n for (let i = 0; i \u003C \u0060${num}\u0060.length; i\u002B\u002B) {\r\n result \u002B= \u0060${Number(\u0060${num}\u0060[i]) ** 2}\u0060;\r\n }\r\n return Number(result);\r\n}","TestCases":[{"Name":"const nums","Code":"\r\nsquareDigits(3212);\r\n\r\n\r\nsquareDigits(2112);\r\n\r\nsquareDigits(0);\r\n","IsDeferred":false},{"Name":"random nums","Code":"\r\n function randint(min, max){\r\n return Math.floor(Math.random() * (max - min \u002B 1)) \u002B min;\r\n }\r\n\r\n for(let i = 1; i \u003C= 100; i\u002B\u002B){\r\n let num = randint(1, 10_000_000);\r\n let expected = \u002B[...(\u0027\u0027\u002Bnum)].map(x =\u003E Math.pow(\u002Bx, 2)).join\u0060\u0060;\r\n }","IsDeferred":false}]}