diff --git a/04-fibonacci/index.js b/04-fibonacci/index.js index a910901..61a3be4 100644 --- a/04-fibonacci/index.js +++ b/04-fibonacci/index.js @@ -2,9 +2,9 @@ export function fibonacci(value) { // implementar logica aqui if (value < 1) { return 0 - } else if (value <= 2) { - return 1 - } else { - return (fibonacci(value - 1) + fibonacci(value - 2)) - } + } else if (value <= 2) { + return 1 + } else { + return (fibonacci(value - 1) + fibonacci(value - 2)) + } } \ No newline at end of file