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 fcb1c49 commit 51572a0Copy full SHA for 51572a0
10_fibonacci/solution/fibonacci-solution.js
@@ -4,13 +4,11 @@ const fibonacci = function(count) {
4
5
let firstPrev = 1;
6
let secondPrev = 0;
7
-
8
- // For clarification: curr stands for current. This is standard syntax
9
10
for (let i = 2; i <= count; i++) {
11
- let curr = firstPrev + secondPrev;
+ let current = firstPrev + secondPrev;
12
secondPrev = firstPrev;
13
- firstPrev = curr;
+ firstPrev = current;
14
}
15
16
return firstPrev;
0 commit comments