스코프: 크롬 디버거로 보기, 블록스코프, 함수스코프, 렉시컬스코프
스코프란, 변수 이름, 함수 이름, 클래스 이름과 같은 식별자가 본인이 선언된 위치에 따라 다른 코드에서 자신이 참조될 수 있을지 없을지 결정하는 것이다. 식별자에 대한 유효범위라고도 간단히 말한다. 크롬 디버거로 보는 스코프 var globalVariable1 = 1; const globalVariable2 = 2; const outerConst = function () { console.log(); }; var outerVar = function () { console.log(); }; function outerFunc2() { console.log(); } function outerFunc1() { let outerVariable = 999; function innerFunc() { const in..