Block-Scoped Functions code is wrong.
webbedspace opened this issue · comments
Leon commented
This is wrong. That code depicts function-scoped functions. It should actually be this:
{
function foo() {...}
foo();
{
function bar() {...}
bar();
}
}
ES5:
function foo() {...}
function bar() {...}
{
foo();
{
bar();
}
}
Dr. Ralf S. Engelschall commented
Good catch. Thanks for the hint. I've revised the stuff and now showcase both Function-Scoped Functions and Block-Scoped Functions. How it is correct now.