You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... 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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: