한마디로: "너의 variable이 존재하는가 아닌가?" = "variable이 정의가 되었나 아닌가?" if (true){ const hello = "hi!"; console.log(hello) } console.log(hello) 여기서 hello는 정의되지 않았음. 이것이 scope. hello는 {} 안에서만 존재함. -> 콘솔로그 하면 hi!와 에러가 나옴. 왜나하면 hello는 안에서는 존재하지만 외부에서는 존재하지 않음. 이것이 scope. 접근할 수 있나? 없나? 우리가 접하는 scope의 종류: global scope cocst h = "hello"; function a(){ console. log(h) } a() golbal scope는 무엇이든 접근할 수 있다. 그것이 어디에 있든. ..