Skip to content

Add Fibonacci sequence utility#9

Open
DeeBertoldi wants to merge 1 commit into
buwebdev:mainfrom
DeeBertoldi:add_fibonacci_sequence
Open

Add Fibonacci sequence utility#9
DeeBertoldi wants to merge 1 commit into
buwebdev:mainfrom
DeeBertoldi:add_fibonacci_sequence

Conversation

@DeeBertoldi

Copy link
Copy Markdown

Added a Fibonacci utility function that generates a Fibonacci sequence based on the number of terms provided.

Included 3 unit tests to validate:

  • a sequence with 1 term
  • a sequence with 5 terms
  • error handling for negative numbers

All tests pass successfully using npm test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant