Consider the following code snippet
while (a != 0)
{
if

Home | Discussion Forum
Taiyari24Hour

Consider the following code snippet

while (a != 0)
{
if (a == 1)
continue;
else
a++;
}

What will be the role of the continue keyword in the above code snippet?



View More Related Question

2) Among the keywords below, which one is not a statement?

3) What are the three important manipulations done in a for loop on a loop variable?

4) Consider the following code snippet

function tail(o)
{
for (; o.next; o = o.next) ;
return o;
}

Will the above code snippet work? If not, what will be the error?

5) Consider the following code snippet

function printArray(a)
{
var len = a.length, i = 0;
if (len == 0)
console.log("Empty Array");
else
{
do
{
console.log(a[i]);
}
while (++i < len);
}
}

What does the above code result?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.