Skip to content

Commit f2c0d09

Browse files
Added handling of string case for 0
1 parent 85a9d56 commit f2c0d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

10_fibonacci/solution/fibonacci-solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fibonacci = function(count) {
22
if (count < 0) return "OOPS";
3-
if (count === 0) return 0;
3+
if (count == 0) return 0;
44

55
let firstPrev = 1;
66
let secondPrev = 0;

0 commit comments

Comments
 (0)