DEV Community

Discussion on: Challenge: Write the recursive Fibonacci algorithm in a different language.

 
avalander profile image
Avalander

If you think it's important enough for a code challenge to have a Javascript implementation that returns Infinity instead of blowing the stack for large values, be my guest and suggest an alternative implementation.

Just posting the console output of calling my function with an arbitrarily long value seems rather pointless. I agree my solution is not perfect but I'd appreciate a better solution more than an error message.