asked
JavaScript Intermediate to Advanced: Engine Core
8. Hoisting, calling from the front of the function, [Coding time]
Written on
·
296
0
Answer 1
1
두번째 안되는 코드에서 getBook이라는 이름을 가진 함수를 console.log로 호출 하는데 getBook이라는 함수가 없으니까 안되는겁니다. console.log(a)를 하시면 정상 작동합니다