31. The output for the following code snippet would most appropriately be
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}
32. The output for the following code snippet would most appropriately be
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}
33. A conditional expression is also called a
34. Which is a more efficient code snippet ?
Code 1 :
for(var num=10;num>=1;num--)
{
document.writeln(num);
}
Code 2 :
var num=10;
while(num>=1)
{
document.writeln(num);
num++;
}
Code 1 :
for(var num=10;num>=1;num--)
{
document.writeln(num);
}
Code 2 :
var num=10;
while(num>=1)
{
document.writeln(num);
num++;
}
35. A statement block is a
Read More Section(Basic and Variables)
Each Section contains maximum 70 questions. To get more questions visit other sections.