A

Admin • 828.03K Points
Coach

Q. What is the output of Boolean('false')?

  • (A) true
  • (B) false
  • (C) undefined
  • (D) NaN
  • Correct Answer - Option(A)
  • Views: 10
  • Filed under category JavaScript
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.