Problems encountered Summary

1. existing objects (arrays) and the resulting object (array)

function fn(i) {
            if (i == 2 || i == 1) {
                return 1;
            }
            return fn(i - 1) + fn(i - 2)
        }
        was o = []
         for ( were i = 1; i <= 10; i ++ ) {
             were a = fn (i)
            o.push(a)
        }
        console.log (d);
        console.log(arr);
        console.log (as === arr); // false

The return value is always false, causes and synchronous, asynchronous ... there is no relationship between complex data types as will create their own space in a heap, so the two can never equal space, unless another object is to change the current object point assignment

Guess you like

Origin www.cnblogs.com/liuyuexue520/p/12089897.html
Recommended