feat(challenge) desafio fibonacci finalizado

This commit is contained in:
Thiago Bronisio 2022-10-28 23:57:25 -03:00
parent 1f50fc9edf
commit 7f2961dd30

View File

@ -1,4 +1,6 @@
export function fibonacci(value) {
// implementar logica aqui
if (value === 0) return 0;
if (value === 1) return 1;
return fibonacci(value - 1) + fibonacci(value - 2)
}