Skip to content

Program Crash #14

@thevinnysmanno

Description

@thevinnysmanno

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions