Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript continue with for Loop

// program to print the value of i
for (let i = 1; i <= 5; i++) {

    // condition to continue    
    if (i == 3) {
        continue;
    }

    console.log(i);
}
 
PREVIOUS NEXT
Tagged: #javascript #continue #Loop
ADD COMMENT
Topic
Name
8+8 =