document.getElementById("userBtn").addEventListener("click", function () {
setTimeout(() => {
console.log(this.innerHTML);
}, 1000);
});
settimeout 안의 콜백 함수에 this를 쓰면 window로 정의 돼서 arrow function으로 쓰셨는데
arrow function은 this를 재정의 하지 않고 최상단의 window만 뱉어내는 걸로 이해해서..
어째서 저기에 arrow function을 쓰면 this가 버튼이 되는 건지 이해를 못했습니다 ㅠㅠ