Role of continue keyword in the javascript code snippet
Answers
Answered by
0
continue is used to leave the present iteration and move to next one.
snippet:
for (i = 1 ; i ‹ = 10 ; i + + )
{
if ( i = = 5)
continue;
System.out.println( i );
}
output :
1
2
3
4
6
7
8
9
10
Similar questions