What is the code inside the false block, even if I see that this is and it's just confused ... I did not expect that it would be wrapped in false cases. Yes; The code is hosting before the code runs, so var foo is hoisted on top of the stack Can not be executed at any time?
function foo () {if (false) {var foo = 'bar'; // Will it never be executed, even if it is hoisted? }}
if statement comes out or not
true or
false is not yet known.
No comments:
Post a Comment