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