ExamVeda
Login
Home
This question belongs to Javascript Basic And Variables
Basic and Variables
?

Consider the following code snippet
while (a != 0)
{
   if (spam>a == 1) 
       continue;
   else 
       a++;
}
What will be the role of the continue keyword in the above code snippet?

Answer & Solution
Correct Answer: Option C
Instead of exiting a loop like the break keyword, the continue keyword moves to the next iteration from the place encountered.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.