How to go to the next element of the loop in JS?

How to run all tests for each iteration of the loop?
for(var k=0; k < W. length; k++) {
 // Get the string length
 long= W[k].length;

 if(long < 5){
 // Move to next array element W[k] and not to perform other checks
}
 // Still checking
 // Still checking
 // Still checking
}
July 12th 19 at 17:08
2 answers
July 12th 19 at 17:10
Solution
if(long < 5) {
continue
}
July 12th 19 at 17:12
if(long < 5){
break;
}
No no, break will stop the loop - abdul_Hagenes89 commented on July 12th 19 at 17:15
: ;( Exactly. I sat and couldn't remember: break or continue) - neoma commented on July 12th 19 at 17:18

Find more questions by tags JavaScript