Skip to content

Commit 28676ce

Browse files
committed
Remove unused variable
1 parent b95ffc0 commit 28676ce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

JavaScript/8-fib-iter.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ const fibonacci1 = n => {
55
return fibonacci1(n - 1) + fibonacci1(n - 2);
66
};
77

8-
console.log(fibonacci1(10));
8+
console.log(fibonacci1(14));
99

1010
const fibonacci2 = n => {
1111
let a = 1;
1212
let b = 0;
1313
let c = 0;
14-
let counter = n;
1514
while (n > 0) {
1615
c = a + b;
1716
b = a;
@@ -21,4 +20,4 @@ const fibonacci2 = n => {
2120
return b;
2221
};
2322

24-
console.log(fibonacci2(10));
23+
console.log(fibonacci2(14));

0 commit comments

Comments
 (0)