{"ScriptPreparationCode":"function squareDigits(num) {\r\n return Number((\u0027\u0027 \u002B num).split(\u0027\u0027)\r\n .map(function(val) {\r\n return val * val;\r\n })\r\n .join(\u0027\u0027));\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\n\r\nfor(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}]}