A

Admin • 828.03K Points
Coach

Q. What is the output?

Code:
console.log('5' === 5);
  • (A) true
  • (B) false
  • (C) undefined
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
Triple equals (===) checks both value and type; string !== number.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.