M

Manisha Agrawal • 9.34K Points
Tutor III

Q. Consider the following code snippet.
What will be the role of the continue keyword in the above code snippet?

Code:
while (n != 0)
{
if (n == 1)
continue;
else
n++;
}
  • (A) The continue keyword breaks out of the loop
  • (B) The continue keyword restarts the loop
  • (C) The continue keyword skips the next iteration
  • (D) The continue keyword skips the rest of the statements in that iteration
  • Correct Answer - Option(D)
  • Views: 121
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics