Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
iMark
· 13y ago · 0 comments
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.
Comments
[–]
robcee
13y 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.