I

Indresh Gehalot • 10.11K Points
Tutor II

Q. What is the difference between the two lines given below ? 

Code:
!!(obj1 && obj2);
(obj1 && obj2);
  • (A) Both the lines result in a boolean value “True”
  • (B) Both the lines checks just for the existence of the object alone
  • (C) Both the lines result in a boolean value “False”
  • (D) The first line results in a real boolean value whereas the second line merely checks for the existence of the objects
  • Correct Answer - Option(D)
  • Views: 124
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics