|
|
|
|
|
by olavfosse
1071 days ago
|
|
> As I and other have already said, it depends on the specific language. Some languages scope local variables at the function level (irrespective of {} or Begin End), and other languages scope local variables inside the containing {} or Begin and End block. And some languages do either, depending on the keyword used to declare a variable. Looking at you JavaScript(var vs let). |
|