A

Admin • 833K Points
Coach

Q. What will be the output?

Code:
console.log(!!0);
  • (A) true
  • (B) false
  • (C) 0
  • (D) undefined
  • Correct Answer - Option(B)
  • Views: 18
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

0 is falsy, so !!0 results in false.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.