What is the difference between the two lines given below ? !!(obj1 && obj2); (obj1 && obj2);
Both the lines result in a boolean value “True”
Both the lines result in a boolean value “False”
Both the lines checks just for the existence of the object alone
The first line results in a real boolean value whereas the second line merely checks for the existence of the objects
Answer : D
View More Related Question
1) Consider the following code snippet
o.m(x,y);
Which is an equivalent code for the above code snippet?
2) Consider the following code snippet :
var grand_Total=eval("10*10+5");
The output for the above statement would be :
3) Do functions in JavaScript necessarily return a value ?
It is mandatory
Not necessary
Few functions return values by default
All of the mentioned
View Answer
4) For the below mentioned code snippet:
var o = new Object();
The equivalent statement is:
5) Consider the following code snippet
function hypotenuse(a, b)
{
function square(x)
{
return x*x;
}
return Math.sqrt(square(a) + square(b));
}
What does the above code result?
Sum of square of a and b
Square of sum of a and b
Sum of a and b square
None of the mentioned
View Answer