Skip to content
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

Program Crash #14

Open
thevinnysmanno opened this issue Dec 16, 2016 · 0 comments
Open

Program Crash #14

thevinnysmanno opened this issue Dec 16, 2016 · 0 comments

Comments

@thevinnysmanno
Copy link

While taking one of your Udemy courses I noticed the fibonacci function...

let fibonacci = (n) => {
if (n < 3) return 1;
return fibonacci(n - 1) + fibonacci(n - 2);
}
fibonacci();

... would crash the program when the number (n) got bigger and required me to close out of the window. Refresh didn't work. I am assuming it is because the recursive function needs a lot of processing power but I wanted to point out that a simple refresh page didn't work.

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

No branches or pull requests

1 participant