{"ScriptPreparationCode":null,"TestCases":[{"Name":"yours","Code":"function pow(base, power) {\r\n if (power === 0) {\r\n return 1;\r\n }\r\n\r\n if (power % 2 === 0) {\r\n const multiplier = pow(base, power / 2);\r\n return multiplier * multiplier;\r\n }\r\n\r\n const multiplier = pow(base, Math.floor(power / 2));\r\n return multiplier * multiplier * base;\r\n}\r\n\r\nvar a = pow(2,20)","IsDeferred":false},{"Name":"my","Code":"function pow2(x, y) {\r\n var q = parseInt((y / 2), 10);\r\n\tif (y % 2 !== 0) {\r\n\t\treturn (x ** q) * (x ** q) * x; \r\n\t}\r\n return (x ** q) * (x ** q); \r\n}\r\nvar a = pow2(2,20)","IsDeferred":false}]}