JSPlaygrounds
JSPlaygrounds copied to clipboard
Program Crash
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.