arrow 함수와 this 앞선 포스트에서 꾸역 꾸역 execution context와 this에 대해서 알아갈 무렵 ECMA6가 발표되면서 arrow 함수라는 것이 발표되고 또다시 this는 혼돈에 빠지게 된다. https://goodteacher.tistory.com/438 [javascript] this -1 이번 포스트에서는 알쏭 달쏭 헤깔리는 javascript에서의 this에 대해서 살펴보자. javascript에서의 this javascript에서의 this가 어려운 이유는 그때 그때 달라지기 때문이다. 다른 언어에서의 this와 그 goodteacher.tistory.com arrow 함수에서의 this 일반 함수에서 this가 실행환경 즉 execution context에 의해 좌우되는 ..
[javascript] this - 2
arrow 함수와 this 앞선 포스트에서 꾸역 꾸역 execution context와 this에 대해서 알아갈 무렵 ECMA6가 발표되면서 arrow 함수라는 것이 발표되고 또다시 this는 혼돈에 빠지게 된다. https://goodteacher.tistory.com/438 [javascript] this -1 이번 포스트에서는 알쏭 달쏭 헤깔리는 javascript에서의 this에 대해서 살펴보자. javascript에서의 this javascript에서의 this가 어려운 이유는 그때 그때 달라지기 때문이다. 다른 언어에서의 this와 그 goodteacher.tistory.com arrow 함수에서의 this 일반 함수에서 this가 실행환경 즉 execution context에 의해 좌우되는 ..
2023.03.09