πŸ“Š JavaScript
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) The first line results in a real boolean value whereas the second line merely checks for the existence of the objects

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
199
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
97%
Success Rate