What will be the role of the continue keyword in the following JavaScript code snippet?
while (a != 0)
{
   if (a == 1) 
       continue;
   else 
       a++;
}
a)  The continue keyword restarts the loop
b)	The continue keyword skips the next iteration
c)	The continue keyword skips the rest of the statements in that iteration
d)	The continue keyword breaks out of the loop
Answer: c
Explanation: Instead of exiting a loop like the break keyword, the continue keyword moves to the next iteration from the place encountered. While the break statement breaks out of the loop.
						
						
												
							Related Posts
- The basic purpose of the toLocaleString() is to _________
- Identify the process done in the following JavaScript code snippet?
 o = {x:1, y:{z:[false,null,””]}};
 s = JSON.stringify(o);
 p = JSON.parse(s);
- The purpose of extensible attribute is to __________
- What is the prototype represents in the following JavaScript code snippet?
 function f() {};
- To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the ____________
- In the following syntax, the data type within the square brackets must be ___________
 book[datatype]=assignment_value;
- A linkage of series of prototype objects is called as ________
Join The Discussion