for loop

Can you do a double for loop like you can in Java using Javascript

for(i=0, j = 0; i < n; i++, j++)

this was the trick to my algorithm that i tested in java and I don’t want to redo the algorithm.

var j = 0;
for(i = 0; i < n; i++){
  j++;
}

Thanks.