A

Admin • 833K Points
Coach

Q. What is the result?

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

Explanation by: Admin

0 and -0 are considered equal in strict comparison.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.