1. 그냥 this

output: window


2. this === window

ouput: true


3. 함수 안에서 this



output: window


4. 오브젝트 안에서 this


output: window


5. "use strict" 에서 checkThis


output: undefined

6.. checkThis.call(this);

output: window

7. that

output: window

8. () => {}


output: window


9. object (4번 참고)

output: undefined

10. obejct2

output: undefined

(그냥 object.checkThis() 하면 {value: 0, checkThis: f} 반환 됨.)


11. object3

output: window





출처: https://www.youtube.com/watch?v=kb0Af7dzCTs

개추좀