Q. If the following piece of JavaScript code is executed, will it work if not, what kind of possible error can occur?
Code:
function fun(o)
{
for(;o.next; oo =o.next);
return o;
}
β
Correct Answer: (A)
Yes, it will work fine