How var a is declared? Is it global? What scope does it have?
if ((a = 10) > 0) {
...
}
Is it like this?
var a = 10;
if (a > 0) { ... }
How var a is declared? Is it global? What scope does it have?
if ((a = 10) > 0) {
...
}
Is it like this?
var a = 10;
if (a > 0) { ... }