모던 자바스크립트함수 다루기What is this?
화살표 함수에는 this가 없지 않나요?
조회 314
좋아요 1
2023년 2월 1일
iberis
1
댓글 2개
0
채택된 답변 수 18
댓글 2개
그리고 화살표 함수에는 this가 없습니다.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
Arrow functions don't have their own bindings to this, arguments, or super, and should not be used as methods.