3 ms·
I expect JSLint was whining about using multiple `var` statements. Using a single var and putting each declaration on its line is not incompatible: var fo
by masklinn 15y ago
I expect JSLint was whining about using multiple `var` statements.
Using a single var and putting each declaration on its line is not incompatible:
var foo = 4,
bar = 5,
baz = 6,
qux = 'quux;
- ward 15y agoThat feels like a situation that could easily end up (copy pasting something, someone adding another var, ...) in an unexpected global variable declaration. var foo = 4, bar = 5, baz = 6, sprinkles = 'wee'; qux = 'quux'; Making `qux` global.