|
|
|
|
|
by qayxc
1914 days ago
|
|
Not just in Javascript. Since blocks define a scope, visibility and unexpected lifetime issues may occur in other curly-braces languages like C and C++ just as well. Using blocks like that is something you should be very careful about - might have some surprising effects especially for novice programmers. |
|