+ 3
Comma in variable declaration
I came across a play quiz question that had this... var a,b,c; What is this madness!? Is this just shorthand for declaring 3 separate undefined variables? Or would it just be one variable?
3 odpowiedzi
+ 6
Haha, yes. It's equivalent to
var a;
var b;
var c;
+ 3
thank you!!
+ 1
You're welcome! :)