Skip to content

Commit b9dc0f9

Browse files
goran1010mao-sz
andauthored
Update foundations/object_basics/03_fibonacci/solution/fibonacci-solution.js
Co-authored-by: mao-sz <122839503+mao-sz@users.noreply.github.com>
1 parent 5ae61ff commit b9dc0f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎foundations/object_basics/03_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
// checks argument's type and makes sure we use
3-
// a number throughout rest of function.
3+
// a positive number throughout rest of function.
44
if (typeof count !== 'number' || count <= 0 || Number.isNaN(count)) {
55
return "OOPS";
66
}

0 commit comments

Comments
 (0)