We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f387f3 commit 97991c0Copy full SHA for 97991c0
src/exercises/fibonacci.js
@@ -7,6 +7,7 @@ function fibonacci (anzahlElemente){
7
8
for (let i = 2; fibonacciArr.length < anzahlElemente; i++) {
9
console.log(i)
10
+ // Addiere die zahlen von fiboarray[index (letzte zahl)] + fiboarray[index (zweitletzte zahl)]
11
fibonacciArr.push(fibonacciArr[i-2] + fibonacciArr[i-1])
12
}
13
return fibonacciArr
0 commit comments