-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# 호이스팅 | ||
|
||
자바스크립트 엔진이 식별자들(변수)을 최상단으로 끌어 올려놓은 다음 실제 코드를 실행하기 때문에 발생하는 현상. | ||
즉, 동기적으로 코드를 실행시키기 전, 선언된 식별자들을 맨 위로 끌어올려 실행하게 된다. | ||
|
||
일부에서는 let, const 및 class를 호이스트되지 않는 것처럼 보이지만, 그 이유는 TDZ(temporal dead zone)가 선언 이전의 변수 사용을 엄격하게 금지하고 있기 때문이다. | ||
|
||
## 변수 호이스팅 | ||
|
||
### var | ||
|
||
### let, const | ||
|
||
## 함수 호이스팅 | ||
|
||
## class 호이스팅 |