Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update Fibonnaci.js #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RohitPaul0007
Copy link
Contributor

No description provided.

@Riyakumari57
Copy link
Owner

It will be much easier if you will add PR description for reviewing the changes done by you .

@Riyakumari57
Copy link
Owner

As much I know both of the provided approaches have the same time and space complexity, as they follow the same algorithm for generating and printing Fibonacci numbers.
Can you describe properly in what aspect you want to update it

@RohitPaul0007
Copy link
Contributor Author

Well just because it is Javascript, May be it will not throw an error, But it can throw error in production. For example , in the place of fi=null, if we take fi=undefined, the code will also run. But, adding a primitive datatypes "fi" will make the code readable. If you think that you don't want update it its ok.

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.

2 participants