diff --git a/10_fibonacci/solution/fibonacci-solution.js b/10_fibonacci/solution/fibonacci-solution.js index 1d7d9c6..acdd1e0 100644 --- a/10_fibonacci/solution/fibonacci-solution.js +++ b/10_fibonacci/solution/fibonacci-solution.js @@ -4,13 +4,11 @@ const fibonacci = function(count) { let firstPrev = 1; let secondPrev = 0; - - // For clarification: curr stands for current. This is standard syntax for (let i = 2; i <= count; i++) { - let curr = firstPrev + secondPrev; + let current = firstPrev + secondPrev; secondPrev = firstPrev; - firstPrev = curr; + firstPrev = current; } return firstPrev;