I am looking for a JavaScript equivalent of the Python:
pass statement that does not run the function of the ... notation?
Is the
In some cases pass can just be ;
A real life example can be:
var j;
for (j = i + 1; j < binstrN.length && binstrN[j] != 1; j++) {
}
let count = j - i;
is same as
var j;
for (j = i + 1; j < binstrN.length && binstrN[j] != 1; j++);
let count = j - i;
Here we are trying to move j to next '1', while i was already at a '1' before it, hence count gives the distance between first two '1's in the string binary string binstrN