From f2c0d0955b83a56e4ebb737765b09ca129407185 Mon Sep 17 00:00:00 2001 From: Miko <100534556+jamienorthman@users.noreply.github.com> Date: Mon, 18 Sep 2023 23:01:33 +0200 Subject: [PATCH] Added handling of string case for 0 --- 10_fibonacci/solution/fibonacci-solution.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/10_fibonacci/solution/fibonacci-solution.js b/10_fibonacci/solution/fibonacci-solution.js index acdd1e0..a002ffe 100644 --- a/10_fibonacci/solution/fibonacci-solution.js +++ b/10_fibonacci/solution/fibonacci-solution.js @@ -1,6 +1,6 @@ const fibonacci = function(count) { if (count < 0) return "OOPS"; - if (count === 0) return 0; + if (count == 0) return 0; let firstPrev = 1; let secondPrev = 0;