|
|
|
|
|
by z3t4
3253 days ago
|
|
I find function lexical scope more natural for JavaScript which is very function orientated, where you pass functions around and use closures a lot. I also find it a PITA having to declare variables before the block, instead of where they are first used. Ex: if(..) {
... huge block of code ..
var foo = 1;
} Means I do not have to scroll back and forth to declare and set the variables at different places. |
|