Hi, I just cant wrap my head around thsi one this morning... comapring arrays, adding duplicates to the aDup array, the break seems to beak out of both loops, not just the inner one.
code:
for (var i = 0; i<aOld.length; i++) {
for (var j = 0; j<aNew.length; j++) {
if (aOld[i] == aNew[j]) {
aNew[j] = "";// cleared as I only want one positive per aNew entry
a = [i, aOld[i]];
aDup.push(a);
break;
}
}
}
How do I break only the inner loop, continuing with the outer loop?
