I'm a novice to JavaScript so I'm Sure this is simple and I have my ideas but I only have come accross this once and not sure what its doing.
Is this creating an Array called "changed" and making it 6 long ( 6 variables ? ) because the code that follows this assigns values to each,
( i.e. c = false , def = 0) Any help. Thanks
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
It is just defining a bunch of variables and only the first one is an array, the rest are undefined values.
It might more sense if it was written on their own lines
which is the same thing as doing
If you code JavaScript in strict mode, you can only have one variable declaration for each block scope.