Return an array of fibonacci sequences up to the nth number

后端 未结 0 2041
囚心锁ツ
囚心锁ツ 2020-11-27 10:36

I know my looping is correct, but it always returns the last number twice for some reason and idk why.

function fibonacci(number) {
    if (number === 0) {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题