{"ScriptPreparationCode":null,"TestCases":[{"Name":"string way","Code":"var n = 1234567890987654321;\r\nvar reversed = num.toString().split(\u0027\u0027).reverse().join(\u0027\u0027);\r\nNumber(reversed)","IsDeferred":false},{"Name":"math way","Code":"var n = 1234567890987654;\r\nvar len = Math.ceil(Math.log(n\u002B1) / Math.LN10);\r\nvar result = 0;\r\nwhile(len\u003E0){\r\nresult=result*10;\r\nresult = Math.floor(result\u002Bn%10);\r\nn=n/10;\r\nlen --\r\n}","IsDeferred":false}]}