A

Admin • 802.91K Points
Coach

Q. What will be logged to the console?

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

Explanation by: Admin
The '==' operator performs type coercion. 0 and false are considered equal with '=='.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.