Consider the following code snippet
function f(o)
{
i

Home | Discussion Forum

Consider the following code snippet

function f(o)
{
if (o === undefined)
debugger;
}

What could be the task of the statement debugger?

View More Related Question

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

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

3) Consider the following code snippet

function f(o)
{
if (o === undefined)
debugger;
}

What could be the task of the statement debugger?

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

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