Emre BELEN
Aug 25, 2017 · 1 min read

Hi Misa,

Great article! Thanks for your incredibly useful work. But I didn’t get the below part, how is it bind to Window ? Actually I was thinking that the this is bound to the myObj.

var myObj = {

myMethod: function () {

myFunc() function myFunc () {

console.log(this)

}

}

}

myObj.myMethod()

myMethod: function () { myFunc() function myFunc () { console.log(this) } }} myObj.myMethod()

)
    Emre BELEN

    Written by