A

Admin • 828.03K Points
Coach

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

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

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.