Consider the following code snippet
function printArray(a)
{ Home | Discussion Forum

Taiyari24Hour

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?



View More Related Question

2) What will be the step of the interpreter in a jump statement when an exception is thrown?

3) 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?

4) One of the special feature of an interpreter in reference with the for loop is that

5) What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?

UP Gk Online Test

taiyari24hour.com

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