javascript- Uncaught SyntaxError: Identifier * has already been declared
This is surprising as javascript var doesn’t respect block scope but functional scope… Sure, but you didn’t use var for the declaration of a in the block scope. You used a function declaration, which does respect block scopes (otherwise it would be completely invalid code, as in ES5 strict mode). It’s permissible in javascript to … Read more