A

Admin • 828.03K Points
Coach

Q. What is the result of this?

Code:
false == '0';
  • (A) true
  • (B) false
  • (C) undefined
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 4
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
Loose equality allows coercion, and false == '0' is true.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.