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 abcaeb9 commit 3b51e5dCopy full SHA for 3b51e5d
fibonacci/fibonacci.js
@@ -1,5 +1,6 @@
1
const fibonacci = function(count) {
2
if (count < 0) return "OOPS";
3
+ if (count == 0) return 0;
4
let a = 0;
5
let b = 1;
6
for (let i = 1; i < count; i++) {
0 commit comments