Re:Code snippets on Microsoft website shown in form of images.
by ward on Wednesday December 07, 2011 @01:36PM
(#3325130)
That 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.
Using a single var and putting each declaration on its line is not incompatible: