Home / Programming MCQs / JavaScript MCQs / Question

I

Indresh • 9.81K Points
Tutor III

Q. What is the role of the "continue" keyword in the following piece of JavaScript code?

Code:
    while (x !=0)  
    {  
    if(x ==1)  
    continue;  
    else  
           x++;  
    }  
(A) The continue keyword skips the next iteration
(B) The continue keyword restarts the loop
(C) It is used for skipping the rest of the statements in that particular iteration
(D) The "continue" keyword breaks out of the loop

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.