this2
it, this and that
it - pronoun - used as the subject of a verb, or the object of a verb or preposition, to refer to a thing, animal, situation, or idea that has already been mentioned: this - determiner, pronoun - used for a person, object, idea, etc. to show which one is referred to: that - determiner, pronoun - used to refer to a person, object, idea, etc. that is separated from the speaker by space or time: [출..
Javascript arrow function (=>), this 구문 오류
자바스크립트 화살표(=>) 함수를 사용할 때, 이벤트 리스너가 부착된 DOM 요소를 지정하기 위하여 this를 사용하면 오류가 발생할 수 있으므로 event.currentTarget을 사용해야 합니다.현재 실행 중인 이벤트 리스너가 부착된 DOM 요소를 지칭할 때에는 "event.currentTarget" When a code runs after an event takes place, this is known as registering an event handler. On the other hand, the event listener listens to the event and then triggers the code for handling the event. [출처] TechTarget 내용은 스택오버..