JSPlaygrounds icon indicating copy to clipboard operation
JSPlaygrounds copied to clipboard

Program Crash

Open thevinnysmanno opened this issue 8 years ago • 0 comments

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.

thevinnysmanno avatar Dec 16 '16 20:12 thevinnysmanno