3.原型链 - 图1

    1. var arr = [1,2,3]
    2. console.log(arr.__proto__);
    3. console.log(arr.__proto__ == Array.prototype);
    4. console.log(arr.__proto__.__proto__)
    5. console.log(arr.__proto__.__proto__ == Object.prototype)
    6. console.log(arr.valueOf());

    原型链.png