1. 1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    var length = 10;
    function fn(n){}{
    console.log(this.length);
    }
    var obj = {
    length: 5,
    method: function( fn ){
    // this = obj
    fn(); // this = window > 10
    arguments[0](); // this = arguments > 2
    }
    }
    obj.method(fn, 1)