Hoisting is not a term normatively defined in the ECMAScript specification.
브라우저가 자바스크립트 함수를 변수보다 먼저 해석
함수표현식은 호이스팅에 의해 함수는 안가고 변수만 가므로 중간에 호출하면 오류
const n= () => { const b = () => console.log(c) const c = 4 return b } n()() //4
const n= () => { c() function c() { console.log(b) } const b = 3 } n()() // error - b is not defined


Seonglae Cho