What means this code: var entry = arrayName[i], index = 0;
?
I don't understand what is function this index = 0
.
Asked
Active
Viewed 37 times
-1

Glauber Castro
- 23
- 4
-
it gives variable index value of 0. Please refer here http://stackoverflow.com/questions/4166785/how-to-define-multiple-variables-on-a-single-line – Claudius Apr 25 '16 at 01:47
1 Answers
2
It's a shorthand for initializing variables.
var entry = arrayName[i], index = 0;
is the same as writing
var entry = arrayName[i];
var index = 0;

Nick Zuber
- 5,467
- 3
- 24
- 48