总结:
    0 '' undefined null属于消极的,|| 中会往后走,二元运算时,就直接取后者了
    [] {} 属于积极的,||时,取其

    1. let a = undefined; // let a = null;
    2. let m = a || '1';
    3. let n = a || '';
    4. let m1 = '' || '2';
    5. let n1 = '' || a;
    6. let m2 = [] || '2';
    7. let n2 = [] || a;
    8. let m3 = 0 || '2';
    9. let n3 = 0 || a;

    结果:
    d85db6340fe482bee887c7ceb9b222b.png