Saturday, July 4, 2015

Declare multiple variables in JavaScript on the same line by way of comma separation.

It's gross and confusing:

var foo = "bar", baz = "qux";
console.log(foo);
console.log(baz);

No comments:

Post a Comment