velopert / learnjs

벨로퍼트와 함께하는 모던 자바스크립트
https://learnjs.vlpt.us/
85 stars 47 forks source link

08. scope 의 이해 · GitBook #7

Open utterances-bot opened 5 years ago

utterances-bot commented 5 years ago

08. scope 의 이해 · GitBook

https://learnjs.vlpt.us/useful/08-scope.html

becover commented 5 years ago

벨로퍼트님! 매일 강의 잘 보고 있습니다! :) let과 const가 호이스팅이 되지 않는게 아니라 호이스팅은 되지만 변수생성과정이 달라서 일시적인 사각지대(TDZ)가 생성되어 초기화전엔 액세스할수 없다는 레퍼런스 에러를 표시하는게 아닌지요?

velopert commented 5 years ago

잘못된 정보를 전달드려 죄송합니다. @Sedies 그렇게 표현하는게 맞는 것 같습니다 :)

수정하도록 하겠습니다!

감사합니다.

kiminch3000 commented 3 years ago

Codesandbox에서 .barbelrc를 비워도 아래와 같은 hosting이 나타납니다. 어떻게 해야 할까요?

// 코드 console.log();

let a = [1, 2, 3, 4, 5];

console.log(a);

a.shift();

console.log(a);

// 실행결과 (4) [2, 3, 4, 5] (4) [2, 3, 4, 5]

zuzubibi commented 2 years ago

22.03.25

JunghooX commented 2 years ago

22.08.18