A

Admin • 828.03K Points
Coach

Q. What does this expression return?

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

Explanation by: Admin
Any non-empty string, including 'false', is truthy.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.