A

Admin • 833K Points
Coach

Q. What will this expression return?

Code:
Boolean([]);
  • (A) true
  • (B) false
  • (C) undefined
  • (D) null
  • Correct Answer - Option(A)
  • Views: 22
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

An empty array is a truthy value in JavaScript.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.