-
Notifications
You must be signed in to change notification settings - Fork 266
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels