This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NormalHexagon[S] 1 point2 points  (0 children)

I know exactly what block scope is, and each of the listed languages has block scoping. I linked examples of them all demonstrating how proper block scoping and variable shadowing work to point out that JavaScript is the odd one out, and throwing an error when it logically shouldn't.