profile
Hello all ๐Ÿ‘‹๐Ÿป ๐Ÿ“London

JS - this

This keyword. 1. this๋Š” ์˜ค๋ธŒ์ ํŠธ ๋‚ด์˜ ๋ฉ”์†Œ๋“œ(ํ•จ์ˆ˜)์—์„œ ์‚ฌ์šฉํ–ˆ์„ ๋•Œ, ๊ทธ ๋ฉ”์†Œ๋“œ๋ฅผ ๋‹ด๊ณ  ์žˆ๋Š”์˜ค๋ธŒ์ ํŠธ๋ฅผ ์ถœ๋ ฅํ•ด์ค€๋‹ค A์˜ค๋ธŒ์ ํŠธ์•ˆ์— console.log(this)๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ํ•จ์ˆ˜๊ฐ€ ์žˆ๋‹ค๋ฉด, this๋Š” ๊ทธ A์˜ค๋ธŒ์ ํŠธ๋ฅผ ๊ฐ€๋ฅดํ‚จ๋‹ค. ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ์ผ๋ฐ˜ํ•จ์ˆ˜

2022๋…„ 3์›” 3์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€