i wanna know more this Fibonacci's operating Principles

前端 未结 0 934
野的像风
野的像风 2021-02-19 08:21
function fibonacci() {
    let a = 0;
    let b = 1;
    let c = 0;
    return function getNext() {
        [c, a, b] = [a, b, a +=b]
        return c;
    };
}
<         


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