DEV Community

Discussion on: Let's Get Clever #1: Fibonacci Sequence

Collapse
 
kamalhm profile image
Kamal

I tried running the code but when I tried to run fib(10) it returns 1, did i do something wrong?

Collapse
 
_bigblind profile image
Frederik 👨‍💻➡️🌐 Creemers

Nope, I made a stupid mistake when writing this function on Dev.to, I originally wrote it in the REPL. Fixing it now.