Y
Hacker News
new
|
ask
|
show
|
jobs
by
iMark
4651 days ago
Hoisting still occurs within a scope such that, for example, a function defined at the end of a block can be called at the top.
1 comments
robcee
4650 days ago
right. The point I was trying to illustrate was that the inner variable declared with a "var" keyword was visible outside its containing block. If I'd used "let" there, it would not be.
link