{"ScriptPreparationCode":null,"TestCases":[{"Name":"loop","Code":"function fibonacci(num){\r\n var a = 1, b = 0, temp;\r\n\r\n while (num \u003E= 0){\r\n temp = a;\r\n a = a \u002B b;\r\n b = temp;\r\n num--;\r\n }\r\n\r\n return b;\r\n}\r\n\r\nfibonacci(20);","IsDeferred":false},{"Name":"better?","Code":"function fibonacci(n) {\r\n return Math.round(\r\n (Math.pow((1 \u002B Math.sqrt(5)) / 2, n) -\r\n Math.pow(-2 / (1 \u002B Math.sqrt(5)), n)) /\r\n Math.sqrt(5)\r\n);\r\n}\r\n\r\nfibonacci(20);\r\n","IsDeferred":false}]}