forked from M3-Academy/challenge-algorithms-v2.0
4 lines
140 B
JavaScript
4 lines
140 B
JavaScript
export function fibonacci(value) {
|
|
// implementar logica aqui
|
|
return value <= 1 ? value : fibonacci(value - 1) + fibonacci(value - 2);
|
|
} |