M
Q. What will the following code snippet work? If not, what will be the error?
Code:
function test(p)
{
for (; p.next; p = p.next) ;
return p;
}
{
for (; p.next; p = p.next) ;
return p;
}
- Correct Answer - Option(D)
- Views: 147
- Filed under category JavaScript
Discusssion
Login to discuss.